commit adea80c68d5172d11687e8e0b8c1d4d422f7ec80
parent 57bdb1fa3c7a51a6abe99300a47a31f5f76c3f11
Author: Cem Keylan <cem@ckyln.com>
Date: Mon, 8 Feb 2021 03:53:03 +0300
mesa: build with wayland support if available
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/extra/mesa/build b/extra/mesa/build
@@ -11,10 +11,7 @@
)
-read -r _ pyver <<-EOF
-$(python3 --version)
-EOF
-
+pyver=$(python3 --version) pyver=${pyver##* }
PYTHONPATH="$PWD/mako/dist/usr/lib/python${pyver%.*}/site-packages:$(python -c "import sys; print(':'.join(sys.path))")"
export PYTHONPATH
@@ -29,13 +26,16 @@ cat _ > meson.build; rm -f _
python3 bin/git_sha1_gen.py --output include/git_sha1.h
+platforms=x11
+cpt l wayland-protocols >/dev/null 2>&1 && platforms=$platforms,wayland
+
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
- -Dplatforms=x11 \
+ -Dplatforms="$platforms" \
. output
ninja -C output