40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'libglvnd'
|
|
pkgname=libglvnd
|
|
version=1.7.0
|
|
revision=1
|
|
build_style=meson
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXext-devel libX11-devel xorgproto"
|
|
checkdepends="xvfb-run"
|
|
short_desc="GL Vendor-Neutral Dispatch library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=2b6e15b06aafb4c0b6e2348124808cbd9b291c647299eaaba2e3202f51ff2f3d
|
|
make_check_pre="xvfb-run"
|
|
|
|
provides="libGL-7.11_1 libEGL-7.11_1 libGLES-7.11_1"
|
|
replaces="libGL>=0 libEGL>=0 libGLES>=0"
|
|
|
|
# tls asm requires initial-exec, disable asm for musl
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl|arm*|mips*) configure_args+=" -Dasm=disabled";;
|
|
esac
|
|
|
|
post_install() {
|
|
grep -A 25 "Copyright (c) 2013, NVIDIA CORPORATION." README.md > 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"
|
|
}
|
|
}
|