package/vlc: add optional dependency to libvpx
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 12 Aug 2018 20:29:20 +0000 (22:29 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 16 Aug 2018 10:00:39 +0000 (12:00 +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 b90fd602d329ab06f5883a59d6bacf7716ff5927..b8c47582dcefdc6455e76123bd4cbe4e266e2d24 100644 (file)
@@ -56,7 +56,6 @@ VLC_CONF_OPTS += \
        --disable-shout \
        --disable-twolame \
        --disable-vdpau \
-       --disable-vpx \
        --disable-vsxu \
        --disable-x262 \
        --disable-zvbi \
@@ -308,6 +307,13 @@ else
 VLC_CONF_OPTS += --disable-v4l2
 endif
 
+ifeq ($(BR2_PACKAGE_LIBVPX),y)
+VLC_CONF_OPTS += --enable-vpx
+VLC_DEPENDENCIES += libvpx
+else
+VLC_CONF_OPTS += --disable-vpx
+endif
+
 ifeq ($(BR2_PACKAGE_LIBXCB),y)
 VLC_CONF_OPTS += --enable-xcb
 VLC_DEPENDENCIES += libxcb