1 ################################################################################
5 ################################################################################
7 SDL_SOUND_VERSION
= 1.0.3
8 SDL_SOUND_SOURCE
= SDL_sound-
$(SDL_SOUND_VERSION
).
tar.gz
9 SDL_SOUND_SITE
= http
://icculus.org
/SDL_sound
/downloads
10 SDL_SOUND_LICENSE
= LGPLv2.1
+
11 SDL_SOUND_LICENSE_FILES
= COPYING
12 SDL_SOUND_INSTALL_STAGING
= YES
13 SDL_SOUND_DEPENDENCIES
= sdl
15 ifneq ($(BR2_ENABLE_LOCALE
),y
)
16 SDL_SOUND_DEPENDENCIES
+= libiconv
19 # optional dependencies
20 ifeq ($(BR2_PACKAGE_FLAC
),y
)
21 SDL_SOUND_DEPENDENCIES
+= flac
# is only used if ogg is also enabled
24 ifeq ($(BR2_PACKAGE_LIBVORBIS
),y
)
25 SDL_SOUND_DEPENDENCIES
+= libvorbis
28 ifeq ($(BR2_PACKAGE_SPEEX
),y
)
29 SDL_SOUND_DEPENDENCIES
+= speex
32 SDL_SOUND_CONF_OPTS
= \
33 --with-sdl-prefix
=$(STAGING_DIR
)/usr \
34 --with-sdl-exec-prefix
=$(STAGING_DIR
)/usr \
38 ifeq ($(BR2_X86_CPU_HAS_MMX
),y
)
39 SDL_SOUND_CONF_OPTS
+= --enable-mmx
41 SDL_SOUND_CONF_OPTS
+= --disable-mmx
44 define SDL_SOUND_REMOVE_PLAYSOUND
45 rm $(addprefix $(TARGET_DIR
)/usr
/bin
/,playsound playsound_simple
)
48 ifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND
),y
)
49 SDL_SOUND_POST_INSTALL_TARGET_HOOKS
+= SDL_SOUND_REMOVE_PLAYSOUND
52 $(eval
$(autotools-package
))