2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-09-20 10:02:44 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# sdl_sound
|
2009-09-20 10:02:44 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-06-02 14:08:47 +02:00
|
|
|
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/
|
2013-10-02 09:53:19 +02:00
|
|
|
SDL_SOUND_LICENSE = LGPLv2.1+
|
|
|
|
SDL_SOUND_LICENSE_FILES = COPYING
|
2012-06-02 14:08:47 +02:00
|
|
|
SDL_SOUND_INSTALL_STAGING = 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 \
|
2011-08-10 00:12:41 +02:00
|
|
|
--enable-static
|
2009-09-20 10:02:44 +02:00
|
|
|
|
2012-07-16 23:37:29 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
|
2009-09-20 10:02:44 +02:00
|
|
|
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
|
2013-06-30 21:29:08 +02:00
|
|
|
# files are removed
|
2010-09-01 17:28:37 +02:00
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|