package/mpv: add libvdpau optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 18 Jan 2020 18:37:32 +0000 (19:37 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 18 Jan 2020 21:15:28 +0000 (22:15 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mpv/mpv.mk

index f92b604c28996cb9b4db0c3fd2a6e9e982f6d0dc..2150f7e9aac57b09eb8e01e14d37f831f9c9f820 100644 (file)
@@ -30,7 +30,6 @@ MPV_CONF_OPTS = \
        --disable-uchardet \
        --disable-vapoursynth \
        --disable-vapoursynth-lazy \
-       --disable-vdpau \
        --disable-mali-fbdev
 
 # ALSA support requires pcm+mixer
@@ -130,6 +129,14 @@ else
 MPV_CONF_OPTS += --disable-drm
 endif
 
+# libvdpau
+ifeq ($(BR2_PACKAGE_LIBVDPAU),y)
+MPV_CONF_OPTS += --enable-vdpau
+MPV_DEPENDENCIES += libvdpau
+else
+MPV_CONF_OPTS += --disable-vdpau
+endif
+
 # LUA support, only for lua51/lua52/luajit
 # This enables the controller (OSD) together with libass
 ifeq ($(BR2_PACKAGE_LUA_5_1)$(BR2_PACKAGE_LUAJIT),y)