2018-10-23 21:27:58 +00:00
|
|
|
# Maintainer: Robert Yang <decatf@gmail.com>
|
|
|
|
pkgname=libdrm-grate
|
|
|
|
pkgver=2.4.91
|
2018-10-23 23:59:15 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Userspace interface to kernel DRM services"
|
2018-10-23 21:27:58 +00:00
|
|
|
url="https://github.com/grate-driver/libdrm"
|
|
|
|
arch="armhf"
|
2018-10-23 23:59:15 +00:00
|
|
|
# Requires a computer with gfx, no X running, build user in 'video' group..
|
2018-10-23 21:27:58 +00:00
|
|
|
options="!check !tracedeps"
|
2018-10-23 23:59:15 +00:00
|
|
|
license="MIT"
|
2018-10-23 21:27:58 +00:00
|
|
|
depends="ldpath"
|
2018-10-23 23:59:15 +00:00
|
|
|
depends_dev="linux-headers"
|
2018-10-23 21:27:58 +00:00
|
|
|
makedepends="$depends_dev libpthread-stubs eudev-dev libpciaccess-dev xmlto
|
|
|
|
autoconf automake libtool m4 util-macros"
|
2018-10-23 23:59:15 +00:00
|
|
|
checkdepends="cunit-dev bash"
|
|
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
2018-10-23 21:27:58 +00:00
|
|
|
install="$pkgname.post-install $pkgname.pre-deinstall"
|
2019-02-09 16:12:30 +00:00
|
|
|
_commit="4dd67e4459f8b0977e79bba96912b42ff3c709b5"
|
2018-10-23 21:27:58 +00:00
|
|
|
source="https://github.com/grate-driver/libdrm/archive/$_commit.tar.gz
|
2018-10-23 23:59:15 +00:00
|
|
|
ioctl.patch
|
|
|
|
"
|
2018-10-23 21:27:58 +00:00
|
|
|
replaces_doc="libdrm-doc"
|
2018-10-23 23:59:15 +00:00
|
|
|
|
2018-10-23 21:27:58 +00:00
|
|
|
_pkgname=libdrm
|
|
|
|
builddir="$srcdir/$_pkgname-$_commit"
|
2018-10-23 23:59:15 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$builddir"
|
2018-10-23 21:27:58 +00:00
|
|
|
export VALGRIND_CFLAGS="$VALGRIND_CFLAGS -I/usr/include/valgrind/"
|
|
|
|
./autogen.sh \
|
2018-10-23 23:59:15 +00:00
|
|
|
--build=$CBUILD \
|
|
|
|
--host=$CHOST \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2018-10-23 21:27:58 +00:00
|
|
|
--disable-radeon \
|
|
|
|
--disable-amdgpu \
|
|
|
|
--disable-nouveau \
|
|
|
|
--disable-vmwgfx \
|
|
|
|
--disable-freedreno \
|
|
|
|
--disable-vc4 \
|
|
|
|
--enable-tegra-experimental-api \
|
2018-10-23 23:59:15 +00:00
|
|
|
--enable-udev \
|
|
|
|
--disable-valgrind
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$builddir"
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2018-10-23 21:27:58 +00:00
|
|
|
|
|
|
|
cd "$pkgdir"/usr/lib
|
|
|
|
install -d libdrm-grate/
|
|
|
|
mv lib*.so.* libdrm-grate/
|
|
|
|
mv lib*.la libdrm-grate/
|
|
|
|
}
|
|
|
|
|
|
|
|
dev() {
|
|
|
|
default_dev
|
|
|
|
|
|
|
|
cd "$subpkgdir"/usr/lib
|
|
|
|
install -d libdrm-grate/
|
|
|
|
mv lib*.so libdrm-grate/
|
|
|
|
|
|
|
|
install -d pkgconfig/libdrm-grate/
|
|
|
|
mv pkgconfig/*.pc pkgconfig/libdrm-grate/
|
|
|
|
|
|
|
|
# Move headers (to /usr/include/libdrm-grate)
|
|
|
|
cd "$subpkgdir"/usr
|
|
|
|
mv include include_
|
|
|
|
mkdir include
|
|
|
|
mv include_ include/libdrm-grate
|
|
|
|
|
|
|
|
# Redirect pkgconfig to alternate lib/header directory
|
|
|
|
local pc
|
|
|
|
cd "$subpkgdir"/usr/lib/pkgconfig/libdrm-grate
|
|
|
|
for pc in *; do
|
|
|
|
sed -i "s./include$./include/libdrm-grate.g" $pc
|
|
|
|
sed -i "s./lib$./lib/libdrm-grate.g" $pc
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
doc() {
|
|
|
|
default_doc
|
|
|
|
replaces="libdrm-doc"
|
2018-10-23 23:59:15 +00:00
|
|
|
}
|
|
|
|
|
2018-10-23 21:27:58 +00:00
|
|
|
sha512sums="95b6f89bdf6ea836f4ad2c61adb68998591c6d2098ed1d36063f633169966bb5edad9294165e4cd22fa8df27c7c00294a88597e32af34e335f30de7fdfda461a 4dd67e4459f8b0977e79bba96912b42ff3c709b5.tar.gz
|
2018-10-23 23:59:15 +00:00
|
|
|
af52fef51aaa05a4dd17919371cb9d92a77480402730bf53ba223e54df52f3825be05a7f28e6aef8c904db5ee59fe38a6c15bc6aafa7f8d31a719e80399dd51f ioctl.patch"
|