aboutsummaryrefslogtreecommitdiff
path: root/extra/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mesa')
-rwxr-xr-xextra/mesa/build10
1 files changed, 5 insertions, 5 deletions
diff --git a/extra/mesa/build b/extra/mesa/build
index 62c7a81b..9d8984da 100755
--- 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