2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00
repo/extra/mesa/build
sewn 2f85c92d4c
mesa: don't depend on LLVM
LLVM is only a requirement for the Lavapipe driver.
2024-05-18 12:01:12 +05:30

35 lines
935 B
Bash
Executable File

#!/bin/sh -e
export DESTDIR="$1"
# rust_std is not (yet?) supported by muon, and we should try
# to avoid a hard rust dependency here if possible.
sed '/rust_std=2021/d' 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 \
-Dprefix=/usr \
-Dsysconfdir=/etc \
-Dmandir=/usr/share/man \
-Dlocalstatedir=/var \
-Dbuildtype=release \
-Dglx-read-only-text=true \
-Dllvm=disabled \
-Dplatforms=wayland \
-Dglx=disabled \
-Degl=enabled \
-Dvalgrind=false \
-Dzstd=disabled \
-Dglvnd="${glvnd_enabled:-true}" \
-Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \
-Dvulkan-drivers='' \
output
ninja -C output
ninja -C output install