repo/extra/mesa/build

34 lines
918 B
Plaintext
Raw Normal View History

2019-06-27 09:19:50 +00:00
#!/bin/sh -e
2023-03-02 14:40:00 +00:00
export DESTDIR="$1"
2022-12-01 04:57:24 +00:00
# rust_std is not (yet?) supported by muon, and we should try
# to avoid a hard rust dependency here if possible.
sed "s/, 'rust_std=2021'//" meson.build > _
mv -f _ meson.build
# To prevent the need for users to fork the mesa package to add
# libglvnd support, the below code checks for its availability
# and enables it if present. ie: install glvnd, rebuild mesa.
pkg-config --exists libglvnd || glvnd_enabled=false
meson setup \
2023-11-18 20:51:12 +00:00
-Dprefix=/usr \
-Dsysconfdir=/etc \
-Dmandir=/usr/share/man \
-Dlocalstatedir=/var \
-Dbuildtype=release \
2021-07-28 05:10:01 +00:00
-Dglx-read-only-text=true \
2021-07-08 06:50:41 +00:00
-Dplatforms=wayland \
-Dglx=disabled \
-Degl=enabled \
-Dvalgrind=false \
-Dzstd=disabled \
-Dglvnd="${glvnd_enabled:-true}" \
2023-08-25 09:52:42 +00:00
-Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \
-Dvulkan-drivers='' \
2023-11-18 20:51:12 +00:00
output
2019-06-27 18:36:01 +00:00
ninja -C output
2019-10-07 21:16:49 +00:00
ninja -C output install