xorg/libglvnd/Pkgfile

26 lines
693 B
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
2019-10-16 19:12:04 +02:00
version=1.2.0
release=3
source=(https://github.com/NVIDIA/$name/archive/v$version/$name-$version.tar.gz \
update-gl_h-to-match-mesa.patch eglplatform.h)
build() {
cd $name-$version
# https://gitlab.freedesktop.org/glvnd/libglvnd/merge_requests/195
patch -p1 -i $SRC/update-gl_h-to-match-mesa.patch
autoreconf -if
./configure --prefix=/usr
make
make DESTDIR=$PKG install
# replace EGL/eglplatform.h with the newer mesa version
install -m 0644 $SRC/eglplatform.h $PKG/usr/include/EGL/
}