Patchwork [v5,26/32] xbmc: Add alsa support

login
register
mail settings
Submitter Bernd Kuhls
Date May 7, 2014, 8:10 p.m.
Message ID <1399493406-7247-27-git-send-email-bernd.kuhls@t-online.de>
Download mbox | patch
Permalink /patch/346799/
State Superseded
Headers show

Comments

Bernd Kuhls - May 7, 2014, 8:10 p.m.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Patch

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index f23c989..38fdabb 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -27,7 +27,6 @@  XBMC_CONF_ENV = \
 	TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr"
 
 XBMC_CONF_OPT +=  \
-	--disable-alsa \
 	--disable-crystalhd \
 	--disable-debug \
 	--disable-dvdcss \
@@ -95,6 +94,13 @@  else
 XBMC_CONF_OPT += --disable-gles
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+XBMC_DEPENDENCIES += alsa-lib
+XBMC_CONF_OPT += --enable-alsa
+else
+XBMC_CONF_OPT += --disable-alsa
+endif
+
 ifeq ($(BR2_PACKAGE_XBMC_LIBUSB),y)
 XBMC_DEPENDENCIES += libusb-compat
 XBMC_CONF_OPT += --enable-libusb