master hovercats/oakiss / repo / mesa / build
 1#!/bin/sh -e
 2
 3export DESTDIR="$1"
 4export PKG_CONFIG_PATH=/usr/lib/pkgconfig
 5export PATH=/usr/bin:$PATH
 6
 7# byacc is only installed as yacc
 8sed 's/byacc/yacc/g' meson.build > _
 9mv -f _ meson.build
10
11# Fix issues with musl and firefox.
12# https://bugs.freedesktop.org/show_bug.cgi?id=35268
13# https://github.com/mesa3d/mesa/commit/9f37c9903b87f86a533bfaffa72f0ecb285b02b2
14# https://gitlab.freedesktop.org/mesa/mesa/-/issues/966
15sed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build > _
16mv -f _ meson.build
17
18# rust_std is not (yet?) supported by muon, and we should try
19# to avoid a hard rust dependency here if possible.
20sed '/rust_std=2021/d' meson.build > _
21mv -f _ meson.build
22
23muon setup \
24	-Dprefix=/usr \
25	-Dsysconfdir=/etc \
26	-Dmandir=/usr/share/man \
27	-Dlocalstatedir=/var \
28	-Dbuildtype=release \
29	-Db_colorout=never \
30	-Dplatforms=wayland \
31	-Dglx=disabled \
32	-Degl=enabled \
33	-Dgallium-drivers=radeonsi \
34	-Dvalgrind=false \
35	-Dzstd=disabled \
36	-Dvulkan-drivers='' \
37	-Dglvnd=false \
38	-Dllvm=disabled \
39	build
40
41samu -C build
42muon -C build install