mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-22 05:56:19 +00:00
mesa: aid users needing libglvnd
This does a simple check during build time for libglvnd and enables it if present. This prevents users from having to fork the package to add GL support. I want to /eventually/ add some kind of "optional" dependency feature to the package manager so we can be rid of these hacks once and for all.
This commit is contained in:
parent
721c26f30b
commit
c509e468c0
|
@ -33,6 +33,11 @@ export CFLAGS="$CFLAGS -DGLX_X86_READONLY_TEXT"
|
||||||
sed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build > _
|
sed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build > _
|
||||||
mv -f _ 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.
|
||||||
|
! kiss l libglvnd >/dev/null 2>&1 || glvnd_enabled=true
|
||||||
|
|
||||||
meson \
|
meson \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
|
@ -42,6 +47,7 @@ meson \
|
||||||
-Dplatforms=wayland \
|
-Dplatforms=wayland \
|
||||||
-Dglx=disabled \
|
-Dglx=disabled \
|
||||||
-Dzstd=false \
|
-Dzstd=false \
|
||||||
|
-Dglvnd="${glvnd_enabled:-false}"
|
||||||
. output
|
. output
|
||||||
|
|
||||||
ninja -C output
|
ninja -C output
|
||||||
|
|
Loading…
Reference in New Issue
Block a user