1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# sdl_sound 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSDL_SOUND_VERSION = 1.0.3 8*4882a593SmuzhiyunSDL_SOUND_SOURCE = SDL_sound-$(SDL_SOUND_VERSION).tar.gz 9*4882a593SmuzhiyunSDL_SOUND_SITE = http://icculus.org/SDL_sound/downloads 10*4882a593SmuzhiyunSDL_SOUND_LICENSE = LGPL-2.1+ 11*4882a593SmuzhiyunSDL_SOUND_LICENSE_FILES = COPYING 12*4882a593SmuzhiyunSDL_SOUND_INSTALL_STAGING = YES 13*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES = sdl 14*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS = \ 15*4882a593Smuzhiyun --with-sdl-prefix=$(STAGING_DIR)/usr \ 16*4882a593Smuzhiyun --with-sdl-exec-prefix=$(STAGING_DIR)/usr \ 17*4882a593Smuzhiyun --disable-sdltest \ 18*4882a593Smuzhiyun --enable-static 19*4882a593Smuzhiyun 20*4882a593Smuzhiyunifneq ($(BR2_ENABLE_LOCALE),y) 21*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES += libiconv 22*4882a593Smuzhiyunendif 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# optional dependencies 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_FLAC)$(BR2_PACKAGE_LIBOGG),yy) 26*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --enable-flac 27*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES += flac libogg 28*4882a593Smuzhiyunelse 29*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --disable-flac 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBMODPLUG),y) 33*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --enable-modplug 34*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES += libmodplug 35*4882a593Smuzhiyunelse 36*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --disable-modplug 37*4882a593Smuzhiyunendif 38*4882a593Smuzhiyun 39*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBVORBIS),y) 40*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --enable-ogg 41*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES += libvorbis 42*4882a593Smuzhiyunelse 43*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --disable-ogg 44*4882a593Smuzhiyunendif 45*4882a593Smuzhiyun 46*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SPEEX),y) 47*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --enable-speex 48*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES += speex 49*4882a593Smuzhiyunelse 50*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --disable-speex 51*4882a593Smuzhiyunendif 52*4882a593Smuzhiyun 53*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PHYSFS),y) 54*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --enable-physfs 55*4882a593SmuzhiyunSDL_SOUND_DEPENDENCIES += physfs 56*4882a593Smuzhiyunelse 57*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --disable-physfs 58*4882a593Smuzhiyunendif 59*4882a593Smuzhiyun 60*4882a593Smuzhiyunifeq ($(BR2_X86_CPU_HAS_MMX),y) 61*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --enable-mmx 62*4882a593Smuzhiyunelse 63*4882a593SmuzhiyunSDL_SOUND_CONF_OPTS += --disable-mmx 64*4882a593Smuzhiyunendif 65*4882a593Smuzhiyun 66*4882a593Smuzhiyundefine SDL_SOUND_REMOVE_PLAYSOUND 67*4882a593Smuzhiyun rm $(addprefix $(TARGET_DIR)/usr/bin/,playsound playsound_simple) 68*4882a593Smuzhiyunendef 69*4882a593Smuzhiyun 70*4882a593Smuzhiyunifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND),y) 71*4882a593SmuzhiyunSDL_SOUND_POST_INSTALL_TARGET_HOOKS += SDL_SOUND_REMOVE_PLAYSOUND 72*4882a593Smuzhiyunendif 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun$(eval $(autotools-package)) 75