2019-12-01 15:51:00 +01:00
|
|
|
# Template file for 'libglvnd'
|
|
|
|
pkgname=libglvnd
|
|
|
|
version=1.2.0
|
|
|
|
revision=1
|
|
|
|
wrksrc="libglvnd-v${version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="autoconf libtool automake pkg-config python"
|
|
|
|
makedepends="libXext-devel libX11-devel xorgproto"
|
|
|
|
short_desc="GL Vendor-Neutral Dispatch library"
|
|
|
|
maintainer="Stefano Ragni <st3r4g@protonmail.com>"
|
2019-12-01 16:12:10 +01:00
|
|
|
license="custom:NVIDIA"
|
2019-12-01 15:51:00 +01:00
|
|
|
homepage="https://gitlab.freedesktop.org/glvnd/libglvnd"
|
|
|
|
distfiles="https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${version}/libglvnd-v${version}.tar.gz"
|
|
|
|
checksum=56510b6c73d69a6e577490ecc52471ff6e301f17b868afc395090c934eda2b6c
|
|
|
|
patch_args="-Np1"
|
|
|
|
|
|
|
|
provides="libGL-7.11_1 libEGL-7.11_1 libGLES-7.11_1"
|
|
|
|
replaces="libGL>=0 libEGL>=0 libGLES>=0"
|
|
|
|
|
|
|
|
# Disable TLS with musl: https://bugs.freedesktop.org/show_bug.cgi?id=35268
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) configure_args="--disable-tls"
|
|
|
|
esac
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense ${FILESDIR}/LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
libglvnd-devel_package() {
|
|
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
|
|
conflicts="MesaLib-devel<19.2.5_2"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|