mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-18 20:26:58 +00:00
26 lines
654 B
Bash
Executable File
26 lines
654 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# 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 \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--buildtype=release \
|
|
-Dglx-read-only-text=true \
|
|
-Dplatforms=wayland \
|
|
-Dglx=disabled \
|
|
-Degl=enabled \
|
|
-Dvalgrind=false \
|
|
-Dzstd=disabled \
|
|
-Dglvnd="${glvnd_enabled:-true}" \
|
|
-Dvulkan-drivers='' \
|
|
. output
|
|
|
|
ninja -C output
|
|
ninja -C output install
|