38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
# Description: The GL Vendor-Neutral Dispatch library
|
|
# URL: https://github.com/NVIDIA/libglvnd
|
|
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
|
|
# Depends on: xorg-libxext
|
|
|
|
name=libglvnd
|
|
version=1.5.0
|
|
release=2
|
|
source=(https://github.com/NVIDIA/$name/archive/v$version/$name-$version.tar.gz
|
|
https://gitlab.freedesktop.org/glvnd/libglvnd/-/commit/fd1df5e9891dec71013a272e7132f1a33e45f5b5.patch
|
|
0001-glx-Add-another-fallback-library-name.patch)
|
|
|
|
build() {
|
|
## for future references
|
|
#prt-get isinst xorg-libx11 xorg-libxext xorg-xorgproto && PKGMK_GLVND+=' -D x11=enabled -D glx=enabled'
|
|
PKGMK_GLVND+=' -D x11=enabled -D glx=enabled'
|
|
|
|
# https://src.fedoraproject.org/rpms/libglvnd
|
|
patch -Np1 -d $name-$version -i $SRC/0001-glx-Add-another-fallback-library-name.patch
|
|
|
|
# [PATCH] Update GL headers and XML files.
|
|
# Update the GL headers and XML files to the Khronos repository, from
|
|
# commit 11d7b7baebfc2b58116670cd17266f9c6a0d760b.
|
|
patch -p1 -d $name-$version -i $SRC/fd1df5e9891dec71013a272e7132f1a33e45f5b5.patch
|
|
|
|
meson setup $name-$version build $PKGMK_GLVND \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true \
|
|
-D gles1=false \
|
|
-D egl=true \
|
|
-D tls=false
|
|
meson compile -C build
|
|
DESTDIR=$PKG meson install -C build
|
|
}
|