1 |
commit: 767f7bb75242de40719d3c8fee388b7d135a4394 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 1 01:25:32 2021 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 1 01:25:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=767f7bb7 |
7 |
|
8 |
gui-libs/wlroots: add vulkan flags |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
gui-libs/wlroots/metadata.xml | 1 + |
14 |
gui-libs/wlroots/wlroots-9999.ebuild | 10 ++++++++-- |
15 |
2 files changed, 9 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/gui-libs/wlroots/metadata.xml b/gui-libs/wlroots/metadata.xml |
18 |
index d6db63eaef4..1c86adb5d1f 100644 |
19 |
--- a/gui-libs/wlroots/metadata.xml |
20 |
+++ b/gui-libs/wlroots/metadata.xml |
21 |
@@ -21,6 +21,7 @@ |
22 |
wlroots is developed under the direction of the <pkg>gui-wm/sway</pkg> project. |
23 |
</longdescription> |
24 |
<use> |
25 |
+ <flag name="vulkan">Enable support for the vulkan backend renderer</flag> |
26 |
<flag name="x11-backend">Enable support for handling input/output devices through <pkg>x11-libs/libxcb</pkg></flag> |
27 |
<flag name="X">Enable support for X11 applications (XWayland)</flag> |
28 |
</use> |
29 |
|
30 |
diff --git a/gui-libs/wlroots/wlroots-9999.ebuild b/gui-libs/wlroots/wlroots-9999.ebuild |
31 |
index 2a1240692e3..1b918a2014a 100644 |
32 |
--- a/gui-libs/wlroots/wlroots-9999.ebuild |
33 |
+++ b/gui-libs/wlroots/wlroots-9999.ebuild |
34 |
@@ -19,7 +19,7 @@ else |
35 |
fi |
36 |
|
37 |
LICENSE="MIT" |
38 |
-IUSE="x11-backend X" |
39 |
+IUSE="vulkan x11-backend X" |
40 |
|
41 |
DEPEND=" |
42 |
>=dev-libs/libinput-1.14.0:0= |
43 |
@@ -28,6 +28,11 @@ DEPEND=" |
44 |
media-libs/mesa[egl(+),gles2,gbm(+)] |
45 |
sys-auth/seatd:= |
46 |
virtual/libudev |
47 |
+ vulkan? ( |
48 |
+ dev-util/glslang:0= |
49 |
+ dev-util/vulkan-headers:0= |
50 |
+ media-libs/vulkan-loader:0= |
51 |
+ ) |
52 |
x11-libs/libdrm |
53 |
x11-libs/libxkbcommon |
54 |
x11-libs/pixman |
55 |
@@ -54,9 +59,10 @@ src_configure() { |
56 |
"-Dxcb-errors=disabled" |
57 |
"-Dexamples=false" |
58 |
"-Dwerror=false" |
59 |
- "-Drenderers=gles2" |
60 |
+ -Drenderes=$(usex vulkan 'gles2,vulkan' gles2) |
61 |
-Dxwayland=$(usex X enabled disabled) |
62 |
) |
63 |
+# "-Drenderers=gles2" |
64 |
|
65 |
meson_src_configure |
66 |
} |