void-packages/srcpkgs/libglvnd/template
2020-03-05 08:37:47 +01:00

43 lines
1.3 KiB
Bash

# Template file for 'libglvnd'
pkgname=libglvnd
version=1.3.1
revision=1
wrksrc="libglvnd-v${version}"
build_style=meson
hostmakedepends="pkg-config"
makedepends="libXext-devel libX11-devel xorgproto"
short_desc="GL Vendor-Neutral Dispatch library"
maintainer="Stefano Ragni <st3r4g@protonmail.com>"
license="custom:MIT-alike"
homepage="https://gitlab.freedesktop.org/glvnd/libglvnd"
distfiles="https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${version}/libglvnd-v${version}.tar.gz"
checksum=b26c931ff79feced0d1ac69332797a08427308fa85541282ee9995680c880b24
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
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args="-Dtls=disabled"
fi
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
arm*|mips*|ppc*) configure_args+=" -Dasm=disabled";;
esac
post_install() {
$XBPS_FETCH_CMD "https://git.archlinux.org/svntogit/packages.git/plain/trunk/LICENSE?h=packages/libglvnd>LICENSE"
vlicense 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"
}
}