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 <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls 2021-06-18 21:22:36 +02:00 committed by Thomas Petazzoni
parent df19d7d173
commit 031df474c2

View File

@ -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-gbm
MPV_CONF_OPTS += --disable-egl-drm
endif
else
MPV_CONF_OPTS += --disable-gbm --disable-egl-drm
endif
# jack support