2008-03-07 14:31:33 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# SDL_mixer
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-06-16 13:47:15 +02:00
|
|
|
SDL_MIXER_VERSION:=1.2.11
|
2008-03-07 14:31:33 +01:00
|
|
|
SDL_MIXER_SOURCE:=SDL_mixer-$(SDL_MIXER_VERSION).tar.gz
|
|
|
|
SDL_MIXER_SITE:=http://www.libsdl.org/projects/SDL_mixer/release/
|
|
|
|
|
2010-06-16 13:47:15 +02:00
|
|
|
SDL_MIXER_LIBTOOL_PATCH = NO
|
|
|
|
SDL_MIXER_INSTALL_STAGING = YES
|
|
|
|
SDL_MIXER_DEPENDENCIES = sdl
|
2010-09-25 23:48:50 +02:00
|
|
|
SDL_MIXER_CONF_OPT = \
|
|
|
|
--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)
|
|
|
|
SDL_MIXER_CONF_OPT += --enable-music-mp3-mad-gpl
|
|
|
|
SDL_MIXER_DEPENDENCIES += libmad
|
|
|
|
else
|
|
|
|
SDL_MIXER_CONF_OPT += --disable-music-mp3-mad-gpl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
|
|
|
SDL_MIXER_CONF_OPT += --enable-music-ogg
|
|
|
|
SDL_MIXER_DEPENDENCIES += libvorbis
|
|
|
|
else
|
|
|
|
SDL_MIXER_CONF_OPT += --disable-music-ogg
|
|
|
|
endif
|
2008-03-07 14:31:33 +01:00
|
|
|
|
2010-06-16 13:47:15 +02:00
|
|
|
define SDL_MIXER_INSTALL_TARGET_CMDS
|
2008-03-07 14:31:33 +01:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libSDL_mixer*.so* $(TARGET_DIR)/usr/lib/
|
2010-06-16 13:47:15 +02:00
|
|
|
endef
|
2008-03-07 14:31:33 +01:00
|
|
|
|
2010-06-16 13:47:15 +02:00
|
|
|
define SDL_MIXER_CLEAN_CMDS
|
2008-03-07 14:31:33 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libSDL_mixer*.so*
|
2010-06-16 13:47:15 +02:00
|
|
|
-$(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) uninstall
|
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2008-03-07 14:31:33 +01:00
|
|
|
|
2010-06-16 13:47:15 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,sdl_mixer))
|