aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-09-09 22:11:57 +0300
committerCem Keylan <cem@ckyln.com>2021-09-09 22:11:57 +0300
commit733950789f45cbfb2a8ca7587841b8eb1d9309ba (patch)
treee5eeb2bf99ed0d39717a1010d0a6fca0588c15f4 /extra
parentfc732c938940a0ea3db981ccaaf2b42843e1ee8e (diff)
downloadrepository-733950789f45cbfb2a8ca7587841b8eb1d9309ba.tar.gz
mesa: cleanup build, use cl-meson
Diffstat (limited to 'extra')
-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