dev-libs/efl: rework opengl-gles2 logic

- 'opengl' is barely supported by upstream, and es-egl will provide
    similar experience. Even if they're compiled in, hwaccel can be
    disabled from the settings.

Closes: https://bugs.gentoo.org/757339
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Joonas Niilola
2022-01-07 08:36:16 +02:00
parent a955e547f6
commit cd97b7bdf9

View File

@@ -33,6 +33,7 @@ REQUIRED_USE="${LUA_REQUIRED_USE}
drm? ( wayland )
examples? ( eet svg )
ibus? ( glib )
opengl? ( X )
pulseaudio? ( sound )
xim? ( X )
xpresent? ( X )"
@@ -50,6 +51,7 @@ RDEPEND="${LUA_DEPS}
sys-libs/zlib
virtual/jpeg
X? (
!opengl? ( media-libs/mesa[egl(+),gles2] )
media-libs/freetype
x11-libs/libX11
x11-libs/libXScrnSaver
@@ -221,6 +223,8 @@ src_configure() {
emesonargs+=( -D opengl=es-egl )
elif ! use wayland && use opengl; then
emesonargs+=( -D opengl=full )
elif ! use wayland && use X && ! use opengl; then
emesonargs+=( -D opengl=es-egl )
else
emesonargs+=( -D opengl=none )
fi