xbmc: Add VA-API support
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 1 Aug 2014 17:32:39 +0000 (19:32 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 3 Aug 2014 08:42:06 +0000 (10:42 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/xbmc/xbmc.mk

index 920d7315b69ff04b3d907085b75c9800623550b9..880b3d451b498fbb7c04425ff99e34e6cec8c3e5 100644 (file)
@@ -52,7 +52,6 @@ XBMC_CONF_OPT +=  \
        --disable-projectm \
        --disable-pulse \
        --disable-ssh \
-       --disable-vaapi \
        --disable-vdpau \
        --disable-vtbdecoder \
        --enable-optimizations
@@ -186,6 +185,14 @@ ifeq ($(BR2_PACKAGE_XBMC_LIBTHEORA),y)
 XBMC_DEPENDENCIES += libtheora
 endif
 
+# xbmc needs libva & libva-glx
+ifeq ($(BR2_PACKAGE_LIBVA)$(BR2_PACKAGE_MESA3D_DRI_DRIVER),yy)
+XBMC_DEPENDENCIES += mesa3d libva
+XBMC_CONF_OPT += --enable-vaapi
+else
+XBMC_CONF_OPT += --disable-vaapi
+endif
+
 # Add HOST_DIR to PATH for codegenerator.mk to find swig
 define XBMC_BOOTSTRAP
        cd $(@D) && PATH=$(BR_PATH) ./bootstrap