1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
... | ... | |
6 |
6 |
inherit meson
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
|
9 |
|
HOMEPAGE="https://github.com/swaywm/wlroots"
|
|
9 |
HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots"
|
10 |
10 |
|
11 |
11 |
if [[ ${PV} == 9999 ]]; then
|
12 |
|
EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
|
|
12 |
EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git"
|
13 |
13 |
inherit git-r3
|
14 |
14 |
SLOT="0/9999"
|
15 |
15 |
else
|
16 |
|
SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
17 |
|
KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
|
18 |
|
SLOT="0/14"
|
|
16 |
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
|
|
17 |
KEYWORDS="amd64 arm64 ~loong ~ppc64 ~riscv x86"
|
|
18 |
SLOT="0/$(ver_cut 2)"
|
19 |
19 |
fi
|
20 |
20 |
|
21 |
21 |
LICENSE="MIT"
|
22 |
|
IUSE="x11-backend X"
|
|
22 |
IUSE="vulkan x11-backend X"
|
23 |
23 |
|
24 |
24 |
DEPEND="
|
25 |
25 |
>=dev-libs/libinput-1.14.0:0=
|
26 |
|
>=dev-libs/wayland-1.19.0
|
27 |
|
>=dev-libs/wayland-protocols-1.17.0
|
|
26 |
>=dev-libs/wayland-1.20.0
|
|
27 |
>=dev-libs/wayland-protocols-1.24
|
28 |
28 |
media-libs/mesa[egl(+),gles2,gbm(+)]
|
29 |
29 |
sys-auth/seatd:=
|
30 |
30 |
virtual/libudev
|
31 |
|
x11-libs/libdrm
|
|
31 |
vulkan? (
|
|
32 |
dev-util/glslang:0=
|
|
33 |
dev-util/vulkan-headers:0=
|
|
34 |
media-libs/vulkan-loader:0=
|
|
35 |
)
|
|
36 |
>=x11-libs/libdrm-2.4.109:0=
|
32 |
37 |
x11-libs/libxkbcommon
|
33 |
38 |
x11-libs/pixman
|
34 |
39 |
x11-backend? ( x11-libs/libxcb:0= )
|
... | ... | |
43 |
48 |
${DEPEND}
|
44 |
49 |
"
|
45 |
50 |
BDEPEND="
|
46 |
|
>=dev-libs/wayland-protocols-1.17
|
47 |
|
>=dev-util/meson-0.56.0
|
|
51 |
>=dev-libs/wayland-protocols-1.24
|
|
52 |
>=dev-util/meson-0.60.0
|
|
53 |
dev-util/wayland-scanner
|
48 |
54 |
virtual/pkgconfig
|
49 |
55 |
"
|
50 |
56 |
|
... | ... | |
53 |
59 |
local emesonargs=(
|
54 |
60 |
"-Dxcb-errors=disabled"
|
55 |
61 |
"-Dexamples=false"
|
56 |
|
"-Drenderers=gles2"
|
|
62 |
-Drenderers=$(usex vulkan 'gles2,vulkan' gles2)
|
57 |
63 |
-Dxwayland=$(usex X enabled disabled)
|
58 |
|
-Dx11-backend=$(usex x11-backend enabled disabled)
|
|
64 |
-Dbackends=drm,libinput$(usex x11-backend ',x11' '')
|
59 |
65 |
)
|
60 |
66 |
|
61 |
67 |
meson_src_configure
|