5e6bcda7b1
Closes: #30278 [via git-merge-pr]
34 lines
955 B
Bash
34 lines
955 B
Bash
# Template file for 'libdrm'
|
|
pkgname=libdrm
|
|
version=2.4.105
|
|
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=0ba5017cafd4b7ac885356403c20105d40efcd11271ebf75727c1a5599e4ed53
|
|
|
|
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"
|
|
}
|
|
}
|