void-packages/srcpkgs/libdrm/template
2021-12-17 05:27:01 -03:00

34 lines
955 B
Bash

# Template file for 'libdrm'
pkgname=libdrm
version=2.4.109
revision=1
wrksrc="drm-libdrm-${version}"
build_style=meson
configure_args="-Dudev=true -Dvalgrind=false"
hostmakedepends="pkg-config"
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=5ba126403051b2cad0afa4f1d6f78e08d985543db562f164a5fc63c501e07ffd
case "$XBPS_TARGET_MACHINE" in
aarch64*) configure_args+=" -Dvc4=true";;
esac
post_install() {
sed -n 9,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/lib/*.so"
}
}