2009-09-20 10:02:44 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# sdl_sound addon for SDL
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
SDL_SOUND_VERSION:=1.0.3
|
|
|
|
SDL_SOUND_SOURCE:=SDL_sound-$(SDL_SOUND_VERSION).tar.gz
|
|
|
|
SDL_SOUND_SITE:=http://icculus.org/SDL_sound/downloads/
|
|
|
|
SDL_SOUND_INSTALL_STAGING:=YES
|
|
|
|
SDL_SOUND_INSTALL_TARGET:=YES
|
2010-07-03 19:55:30 +02:00
|
|
|
SDL_SOUND_DEPENDENCIES = sdl
|
2009-09-20 10:02:44 +02:00
|
|
|
|
2010-07-04 08:54:47 +02:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
SDL_SOUND_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
2010-07-04 08:56:00 +02:00
|
|
|
# optional dependencies
|
|
|
|
ifeq ($(BR2_PACKAGE_FLAC),y)
|
|
|
|
SDL_SOUND_DEPENDENCIES += flac # is only used if ogg is also enabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
|
|
|
SDL_SOUND_DEPENDENCIES += libvorbis
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SPEEX),y)
|
|
|
|
SDL_SOUND_DEPENDENCIES += speex
|
|
|
|
endif
|
|
|
|
|
2010-12-09 10:55:06 +01:00
|
|
|
SDL_SOUND_CONF_OPT = \
|
|
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--disable-sdltest \
|
|
|
|
--enable-static \
|
|
|
|
--program-prefix=''
|
2009-09-20 10:02:44 +02:00
|
|
|
|
|
|
|
# enable mmx for newer x86's
|
|
|
|
ifeq ($(BR2_i386)$(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y)
|
|
|
|
SDL_SOUND_CONF_OPT += --enable-mmx
|
|
|
|
else
|
|
|
|
SDL_SOUND_CONF_OPT += --disable-mmx
|
|
|
|
endif
|
|
|
|
|
2010-09-01 17:28:37 +02:00
|
|
|
define SDL_SOUND_REMOVE_PLAYSOUND
|
|
|
|
rm $(addprefix $(TARGET_DIR)/usr/bin/,playsound playsound_simple)
|
|
|
|
endef
|
2009-09-20 10:02:44 +02:00
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND),y)
|
2010-09-01 17:28:37 +02:00
|
|
|
SDL_SOUND_POST_INSTALL_TARGET_HOOKS += SDL_SOUND_REMOVE_PLAYSOUND
|
2009-09-20 10:02:44 +02:00
|
|
|
endif
|
|
|
|
|
2010-09-01 17:28:37 +02:00
|
|
|
# target shared libs doesn't get removed by make uninstall if the .la
|
|
|
|
# files are removed (E.G. if BR2_HAVE_DEVFILES isn't set)
|
|
|
|
define SDL_SOUND_UNINSTALL_TARGET_CMDS
|
2010-09-16 13:52:17 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(@D)
|
2009-09-20 10:02:44 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libSDL_sound*so*
|
2010-09-01 17:28:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,sdl_sound))
|