summaryrefslogtreecommitdiff
path: root/user/libdrm
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-08 20:00:47 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-08 20:00:47 -0500
commit1af4a672c7df4fe57d9f1568b1e287cf541f4c26 (patch)
treeeac50b491c5e07cde8768ea3e3ac269cbc5f86b7 /user/libdrm
parent02730461b1a637092784ca8fede7aed510a673c4 (diff)
downloadpackages-1af4a672c7df4fe57d9f1568b1e287cf541f4c26.tar.gz
packages-1af4a672c7df4fe57d9f1568b1e287cf541f4c26.tar.bz2
packages-1af4a672c7df4fe57d9f1568b1e287cf541f4c26.tar.xz
packages-1af4a672c7df4fe57d9f1568b1e287cf541f4c26.zip
user/libdrm: pull in, take, bump, fix
Diffstat (limited to 'user/libdrm')
-rw-r--r--user/libdrm/APKBUILD47
-rw-r--r--user/libdrm/ioctl.patch11
2 files changed, 58 insertions, 0 deletions
diff --git a/user/libdrm/APKBUILD b/user/libdrm/APKBUILD
new file mode 100644
index 000000000..c1e30c1ff
--- /dev/null
+++ b/user/libdrm/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libdrm
+pkgver=2.4.92
+pkgrel=0
+pkgdesc="Userspace interface to kernel DRM services"
+url="https://dri.freedesktop.org/"
+arch="all"
+# Requires a computer with gfx, no X running, build user in 'video' group..
+options="!check"
+license="MIT"
+depends=""
+depends_dev="linux-headers"
+makedepends="$depends_dev bash eudev-dev libpciaccess-dev libpthread-stubs
+ xmlto"
+checkdepends="bash cunit-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.bz2
+ ioctl.patch
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-freedreno \
+ --enable-udev \
+ --disable-valgrind
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="9b75584d8957d298125884d490b74c0a641725d17088ba47f3dc2ec9d06519d8387eb464c024ee11712b31b17fb84e1a9a52bd4ebc7c316beb7d2f8711dc9eb2 libdrm-2.4.92.tar.bz2
+af52fef51aaa05a4dd17919371cb9d92a77480402730bf53ba223e54df52f3825be05a7f28e6aef8c904db5ee59fe38a6c15bc6aafa7f8d31a719e80399dd51f ioctl.patch"
diff --git a/user/libdrm/ioctl.patch b/user/libdrm/ioctl.patch
new file mode 100644
index 000000000..9ffe5f933
--- /dev/null
+++ b/user/libdrm/ioctl.patch
@@ -0,0 +1,11 @@
+--- libdrm-2.4.83/tests/nouveau/threaded.c
++++ libdrm-2.4.83/tests/nouveau/threaded.c
+@@ -40,7 +40,7 @@
+
+ static int import_fd;
+
+-int ioctl(int fd, unsigned long request, ...)
++int ioctl(int fd, int request, ...)
+ {
+ va_list va;
+ int ret;