43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'libdrm'
|
|
pkgname=libdrm
|
|
version=2.4.115
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dudev=true -Dvalgrind=disabled -Dinstall-test-programs=true"
|
|
hostmakedepends="pkg-config python3-docutils"
|
|
makedepends="eudev-libudev-devel libpciaccess-devel"
|
|
short_desc="Userspace interface to kernel DRM services"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://dri.freedesktop.org/"
|
|
distfiles="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-${version}/drm-libdrm-${version}.tar.gz"
|
|
checksum=fd8b7c6e4e40d13c32ab67ace2cb6c71e08c9ca53124ff33ccadd74f604117e3
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) configure_args+=" -Dvc4=enabled";;
|
|
esac
|
|
|
|
post_install() {
|
|
sed -n 3,25p < libsync.h > LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libdrm-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libdrm-test-progs_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - test programs"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|