2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-03-07 14:31:33 +01:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# sdl_mixer
|
2008-03-07 14:31:33 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-17 11:08:37 +01:00
|
|
|
|
|
|
|
SDL_MIXER_VERSION = 1.2.12
|
|
|
|
SDL_MIXER_SOURCE = SDL_mixer-$(SDL_MIXER_VERSION).tar.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
SDL_MIXER_SITE = http://www.libsdl.org/projects/SDL_mixer/release
|
2013-01-17 11:08:37 +01:00
|
|
|
SDL_MIXER_LICENSE = zlib
|
|
|
|
SDL_MIXER_LICENSE_FILES = COPYING
|
2008-03-07 14:31:33 +01:00
|
|
|
|
2010-06-16 13:47:15 +02:00
|
|
|
SDL_MIXER_INSTALL_STAGING = YES
|
|
|
|
SDL_MIXER_DEPENDENCIES = sdl
|
2014-09-27 21:32:44 +02:00
|
|
|
SDL_MIXER_CONF_OPTS = \
|
2010-09-25 23:48:50 +02:00
|
|
|
--without-x \
|
|
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--disable-music-midi \
|
|
|
|
--disable-music-mod \
|
|
|
|
--disable-music-mp3 \
|
|
|
|
--disable-music-flac # configure script fails when cross compiling
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
SDL_MIXER_CONF_OPTS += --enable-music-mp3-mad-gpl
|
2010-09-25 23:48:50 +02:00
|
|
|
SDL_MIXER_DEPENDENCIES += libmad
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SDL_MIXER_CONF_OPTS += --disable-music-mp3-mad-gpl
|
2010-09-25 23:48:50 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
SDL_MIXER_CONF_OPTS += --enable-music-ogg
|
2010-09-25 23:48:50 +02:00
|
|
|
SDL_MIXER_DEPENDENCIES += libvorbis
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SDL_MIXER_CONF_OPTS += --disable-music-ogg
|
2010-09-25 23:48:50 +02:00
|
|
|
endif
|
2008-03-07 14:31:33 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|