aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextra/mesa/build14
1 files changed, 4 insertions, 10 deletions
diff --git a/extra/mesa/build b/extra/mesa/build
index 742c980f..26d29fcb 100755
--- a/extra/mesa/build
+++ b/extra/mesa/build
@@ -21,20 +21,14 @@ export CFLAGS="-DGLX_X86_READONLY_TEXT $CFLAGS"
# Fix issues with musl and firefox.
# https://bugs.freedesktop.org/show_bug.cgi?id=35268
# https://github.com/mesa3d/mesa/commit/9f37c9903b87f86a533bfaffa72f0ecb285b02b2
-sed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build >_
-cat _ > meson.build; rm -f _
+clsed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build
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 \
+cpt l -q wayland-protocols && platforms=$platforms,wayland
+
+cl-meson \
-Dplatforms="$platforms" \
-Dzstd=false \
. output