[Buildroot] [git commit] package/mpv: add libvdpau optional dependency

From: Yann E. MORIN <hidden>
Date: 2020-01-18 21:15:28
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=c0cdbcbb8e314a3733f2c666274039ba92c99837
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Fabrice Fontaine <redacted>
Signed-off-by: Yann E. MORIN <redacted>
---
 package/mpv/mpv.mk | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index f92b604c28..2150f7e9aa 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -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)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help