sdl_sound.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #############################################################
  2. #
  3. # sdl_sound addon for SDL
  4. #
  5. #############################################################
  6. SDL_SOUND_VERSION:=1.0.3
  7. SDL_SOUND_SOURCE:=SDL_sound-$(SDL_SOUND_VERSION).tar.gz
  8. SDL_SOUND_SITE:=http://icculus.org/SDL_sound/downloads/
  9. SDL_SOUND_LIBTOOL_PATCH:=NO
  10. SDL_SOUND_INSTALL_STAGING:=YES
  11. SDL_SOUND_INSTALL_TARGET:=YES
  12. SDL_SOUND_CONF_OPT:=--with-sdl-prefix=$(STAGING_DIR)/usr \
  13. --with-sdl-exec-prefix=$(STAGING_DIR)/usr \
  14. --disable-sdltest \
  15. --enable-static \
  16. --program-prefix=''
  17. # enable mmx for newer x86's
  18. ifeq ($(BR2_i386)$(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y)
  19. SDL_SOUND_CONF_OPT += --enable-mmx
  20. else
  21. SDL_SOUND_CONF_OPT += --disable-mmx
  22. endif
  23. $(eval $(call AUTOTARGETS,package,sdl_sound))
  24. ifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND),y)
  25. $(SDL_SOUND_HOOK_POST_INSTALL):
  26. rm $(addprefix $(TARGET_DIR)/usr/bin/,playsound playsound_simple)
  27. touch $@
  28. endif
  29. # target shared libs doesn't get removed by make uninstall if the .la files
  30. # are removed (E.G. if BR2_HAVE_DEVFILES isn't set)
  31. $(SDL_SOUND_TARGET_UNINSTALL):
  32. $(call MESSAGE,"Uninstalling")
  33. $(MAKE) DESTDIR=$(STAGING_DIR) uninstall -C $(@D)/$(SDL_SOUND_SUBDIR)
  34. rm -f $(@D)/.stamp_staging_installed
  35. $(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(@D)/$(SDL_SOUND_SUBDIR)
  36. rm -f $(TARGET_DIR)/usr/lib/libSDL_sound*so*
  37. rm -f $(SDL_SOUND_TARGET_INSTALL_TARGET) $(SDL_SOUND_HOOK_POST_INSTALL)