From da4606a8a6ddbb9888aa14513de2bc36d6e31ba6 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 15 Feb 2010 20:31:21 +0000 Subject: [PATCH] [packages] libsdl: Enable a few more libsdl subsystems SVN-Revision: 19645 --- libs/libsdl/Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/libs/libsdl/Makefile b/libs/libsdl/Makefile index 8c8188f630..530ddbc0c8 100644 --- a/libs/libsdl/Makefile +++ b/libs/libsdl/Makefile @@ -18,6 +18,8 @@ PKG_MD5SUM:=e52086d1b508fa0b76c52ee30b55bec4 PKG_FIXUP:=libtool PKG_INSTALL:=1 +PKG_CONFIG_DEPENDS:=CONFIG_AUDIO_SUPPORT + include $(INCLUDE_DIR)/package.mk define Package/libsdl @@ -25,7 +27,7 @@ define Package/libsdl CATEGORY:=Libraries TITLE:=Simple DirectMedia Layer URL:=http://www.libsdl.org - DEPENDS:=+DirectFB +zlib +libpthread + DEPENDS:=+DirectFB +zlib +libpthread +AUDIO_SUPPORT:alsa-lib endef define Package/libsdl/description @@ -36,11 +38,17 @@ endef define Build/Configure $(call Build/Configure/Default, \ --enable-libc \ - --disable-audio \ + $(if $(CONFIG_AUDIO_SUPPORT), + --enable-audio \ + --enable-alsa \ + , \ + --disable-audio \ + --disable-alsa \ + ) \ --enable-video \ - --disable-events \ - --disable-joystick \ - --disable-cdrom \ + --enable-events \ + --enable-joystick \ + --enable-cdrom \ --enable-threads \ --enable-timers \ --enable-file \ @@ -48,7 +56,6 @@ define Build/Configure --enable-cpuinfo \ --enable-assembly \ --disable-oss \ - --disable-alsa \ --disable-alsatest \ --enable-alsa-shared \ --disable-esd \ -- 2.30.2