From 031df474c24f92757ac95ade572b90995ebdc6a2 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 18 Jun 2021 21:22:36 +0200 Subject: [PATCH] package/mpv: add optional support for OpenGL DRM EGL Backend Reference: https://github.com/mpv-player/mpv/blob/master/wscript#L571 Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- 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 -- 2.30.2