[Buildroot] [git commit] package/mpv: add optional support for OpenGL DRM EGL Backend

From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: 2021-07-18 21:33:03
Subsystem: the rest · Maintainer: Linus Torvalds

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

Reference: https://github.com/mpv-player/mpv/blob/master/wscript#L571

Signed-off-by: Bernd Kuhls <redacted>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/mpv/mpv.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index 877b84f63a..4292abb876 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -50,8 +50,13 @@ endif
 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
 MPV_CONF_OPTS += --enable-gbm
 MPV_DEPENDENCIES += mesa3d
+ifeq ($(BR2_PACKAGE_LIBDRM),y)
+MPV_CONF_OPTS += --enable-egl-drm
+else
+MPV_CONF_OPTS += --disable-egl-drm
+endif
 else
-MPV_CONF_OPTS += --disable-gbm
+MPV_CONF_OPTS += --disable-gbm --disable-egl-drm
 endif
 
 # jack support
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help