diff mbox series

[2/4] package/mpv: Add optional support for OpenGLES

Message ID 20210618192237.808519-2-bernd.kuhls@t-online.de
State Accepted
Headers show
Series [1/4] package/mpv: fix reproducible build issues | expand

Commit Message

Bernd Kuhls June 18, 2021, 7:22 p.m. UTC
mpv also supports OpenGLES:
https://github.com/mpv-player/mpv/blob/master/video/out/opengl/egl_helpers.c#L98

Runtime-tested using mesa3d iris driver on a non-x11 system.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mpv/mpv.mk | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index 30f377054f..877b84f63a 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -140,6 +140,9 @@  endif
 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
 MPV_CONF_OPTS += --enable-gl
 MPV_DEPENDENCIES += libgl
+else ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
+MPV_CONF_OPTS += --enable-gl
+MPV_DEPENDENCIES += libgles
 else
 MPV_CONF_OPTS += --disable-gl
 endif