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