1 |
commit: cd97b7bdf959f23b2985e4e2febb848d4ce7291f |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 7 06:36:16 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 7 07:36:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd97b7bd |
7 |
|
8 |
dev-libs/efl: rework opengl-gles2 logic |
9 |
|
10 |
- 'opengl' is barely supported by upstream, and es-egl will provide |
11 |
similar experience. Even if they're compiled in, hwaccel can be |
12 |
disabled from the settings. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/757339 |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
dev-libs/efl/{efl-1.26.1.ebuild => efl-1.26.1-r1.ebuild} | 4 ++++ |
18 |
1 file changed, 4 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/efl/efl-1.26.1.ebuild b/dev-libs/efl/efl-1.26.1-r1.ebuild |
21 |
similarity index 98% |
22 |
rename from dev-libs/efl/efl-1.26.1.ebuild |
23 |
rename to dev-libs/efl/efl-1.26.1-r1.ebuild |
24 |
index 2ffe8a53d6e6..8528716bda38 100644 |
25 |
--- a/dev-libs/efl/efl-1.26.1.ebuild |
26 |
+++ b/dev-libs/efl/efl-1.26.1-r1.ebuild |
27 |
@@ -33,6 +33,7 @@ REQUIRED_USE="${LUA_REQUIRED_USE} |
28 |
drm? ( wayland ) |
29 |
examples? ( eet svg ) |
30 |
ibus? ( glib ) |
31 |
+ opengl? ( X ) |
32 |
pulseaudio? ( sound ) |
33 |
xim? ( X ) |
34 |
xpresent? ( X )" |
35 |
@@ -50,6 +51,7 @@ RDEPEND="${LUA_DEPS} |
36 |
sys-libs/zlib |
37 |
virtual/jpeg |
38 |
X? ( |
39 |
+ !opengl? ( media-libs/mesa[egl(+),gles2] ) |
40 |
media-libs/freetype |
41 |
x11-libs/libX11 |
42 |
x11-libs/libXScrnSaver |
43 |
@@ -221,6 +223,8 @@ src_configure() { |
44 |
emesonargs+=( -D opengl=es-egl ) |
45 |
elif ! use wayland && use opengl; then |
46 |
emesonargs+=( -D opengl=full ) |
47 |
+ elif ! use wayland && use X && ! use opengl; then |
48 |
+ emesonargs+=( -D opengl=es-egl ) |
49 |
else |
50 |
emesonargs+=( -D opengl=none ) |
51 |
fi |