xorg/libglvnd/Pkgfile

35 lines
1.1 KiB
Plaintext
Raw Normal View History

# Description: The GL Vendor-Neutral Dispatch library
# URL: https://github.com/NVIDIA/libglvnd
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
2019-08-25 15:41:05 +02:00
# Depends on: xorg-libxext
name=libglvnd
2022-09-03 22:07:12 +02:00
version=1.5.0
release=1
source=(https://github.com/NVIDIA/$name/archive/v$version/$name-$version.tar.gz \
eglplatform.h
0001-glx-Add-another-fallback-library-name.patch)
build() {
#prt-get isinst xorg-libx11 xorg-libxext xorg-xorgproto && PKGMK_GLVND+=' --enable-x11 --enable-glx'; patch -Np1 -d $name-$version -i $SRC/EGL_NO_X11.patch
PKGMK_GLVND+=' -D x11=enabled -D glx=enabled'
# https://src.fedoraproject.org/rpms/libglvnd/tree/rawhide
patch -Np1 -d $name-$version -i $SRC/0001-glx-Add-another-fallback-library-name.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 \
2022-01-03 15:03:41 +01:00
-D tls=false
meson compile -C build
DESTDIR=$PKG meson install -C build
# replace EGL/eglplatform.h with the newer mesa version
install -m 0644 $SRC/eglplatform.h $PKG/usr/include/EGL/
}