package/vlc: add optional dependency to libva
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 12 Aug 2018 20:29:32 +0000 (22:29 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 16 Aug 2018 11:36:50 +0000 (13:36 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/vlc/vlc.mk

index a15bda3204e2ef8559cc50ec43a817edb86b10aa..af500cba33fb093eea340eabc25e5ba5771b3a99 100644 (file)
@@ -64,7 +64,6 @@ VLC_CONF_OPTS += \
        --disable-kate \
        --disable-kva \
        --disable-libplacebo \
-       --disable-libva \
        --disable-linsys \
        --disable-mfx \
        --disable-microdns \
@@ -378,6 +377,14 @@ else
 VLC_CONF_OPTS += --disable-upnp
 endif
 
+# libva support depends on ffmpeg
+ifeq ($(BR2_PACKAGE_FFMPEG)$(BR2_PACKAGE_LIBVA),yy)
+VLC_CONF_OPTS += --enable-libva
+VLC_DEPENDENCIES += libva
+else
+VLC_CONF_OPTS += --disable-libva
+endif
+
 ifeq ($(BR2_PACKAGE_LIBVNCSERVER),y)
 VLC_CONF_OPTS += --enable-vnc
 VLC_DEPENDENCIES += libvncserver