2019-06-27 03:19:50 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2023-03-02 07:40:00 -07:00
|
|
|
export DESTDIR="$1"
|
|
|
|
|
2022-11-30 21:57:24 -07:00
|
|
|
# rust_std is not (yet?) supported by muon, and we should try
|
|
|
|
# to avoid a hard rust dependency here if possible.
|
2024-02-01 22:49:03 -07:00
|
|
|
sed '/rust_std=2021/d' meson.build > _
|
2022-11-30 21:57:24 -07:00
|
|
|
mv -f _ meson.build
|
|
|
|
|
2021-07-10 14:31:20 -06:00
|
|
|
# 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.
|
2022-03-28 03:35:47 -06:00
|
|
|
pkg-config --exists libglvnd || glvnd_enabled=false
|
2021-07-10 14:31:20 -06:00
|
|
|
|
2023-11-03 04:05:09 -06:00
|
|
|
meson setup \
|
2023-11-18 13:51:12 -07:00
|
|
|
-Dprefix=/usr \
|
|
|
|
-Dsysconfdir=/etc \
|
|
|
|
-Dmandir=/usr/share/man \
|
|
|
|
-Dlocalstatedir=/var \
|
|
|
|
-Dbuildtype=release \
|
2021-07-27 23:10:01 -06:00
|
|
|
-Dglx-read-only-text=true \
|
2024-05-16 09:39:16 -06:00
|
|
|
-Dllvm=disabled \
|
2021-07-08 00:50:41 -06:00
|
|
|
-Dplatforms=wayland \
|
|
|
|
-Dglx=disabled \
|
2021-07-23 22:27:37 -06:00
|
|
|
-Degl=enabled \
|
|
|
|
-Dvalgrind=false \
|
2022-09-20 22:16:21 -06:00
|
|
|
-Dzstd=disabled \
|
2022-03-28 03:35:47 -06:00
|
|
|
-Dglvnd="${glvnd_enabled:-true}" \
|
2023-08-25 03:52:42 -06:00
|
|
|
-Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \
|
2022-09-20 22:16:21 -06:00
|
|
|
-Dvulkan-drivers='' \
|
2023-11-18 13:51:12 -07:00
|
|
|
output
|
2019-06-27 12:36:01 -06:00
|
|
|
|
|
|
|
ninja -C output
|
2019-10-07 15:16:49 -06:00
|
|
|
ninja -C output install
|