aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virglrenderer
diff options
context:
space:
mode:
authorFernando Casas Schössow <casasfernando@outlook.com>2017-06-02 14:34:03 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-05 13:58:54 +0000
commit32c081bb5e8c0d933b3d7fb09433efa490930d6d (patch)
treeee400db23183ed660c5fa32a6ec91d50ad5ab3c8 /testing/virglrenderer
parent2c5cd51a1946bb0c492b826f9bf1e60323c8c374 (diff)
downloadaports-32c081bb5e8c0d933b3d7fb09433efa490930d6d.tar.bz2
aports-32c081bb5e8c0d933b3d7fb09433efa490930d6d.tar.xz
testing/virglrenderer: new aport
https://virgil3d.github.io/ A virtual 3D GPU library, that allows the guest operating system to use the host GPU to accelerate 3D rendering
Diffstat (limited to 'testing/virglrenderer')
-rw-r--r--testing/virglrenderer/APKBUILD30
-rw-r--r--testing/virglrenderer/musl-fixes.patch20
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/virglrenderer/APKBUILD b/testing/virglrenderer/APKBUILD
new file mode 100644
index 0000000000..3ed08a307f
--- /dev/null
+++ b/testing/virglrenderer/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Fernando Casas Schossow <casasfernando@outlook.com>
+# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
+pkgname=virglrenderer
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="A virtual 3D GPU library, that allows the guest operating system to use the host GPU to accelerate 3D rendering"
+url="https://virgil3d.github.io/"
+arch="x86_64"
+license="MIT"
+depends="libepoxy mesa"
+makedepends="file libdrm-dev mesa-dev libepoxy-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://www.freedesktop.org/software/virgl/virglrenderer-$pkgver.tar.bz2 musl-fixes.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+sha512sums="5adfc1570300432e5ff575f6f6c1053b40b2cf36ac6adb92ba278d0539a512f34140e4b417cad30e7738859bb9cc08979d2e5e2161028be958e079e394f93d02 virglrenderer-0.6.0.tar.bz2
+450c3f9d2fa07ad61379f2761dcd623e65b52ffd755255f9f479b48aec9bafb1f1dd3766db5e3d0b5e78daf4f9eeb99a645b829356d16f1f84c90a3d97b4abe5 musl-fixes.patch"
diff --git a/testing/virglrenderer/musl-fixes.patch b/testing/virglrenderer/musl-fixes.patch
new file mode 100644
index 0000000000..ebb0b6bcfd
--- /dev/null
+++ b/testing/virglrenderer/musl-fixes.patch
@@ -0,0 +1,20 @@
+--- virglrenderer-0.6.0/vtest/util.c
++++ virglrenderer-0.6.0/vtest/util.c.new
+@@ -26,6 +26,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <sys/select.h>
+
+ int vtest_wait_for_fd_read(int fd)
+ {
+--- virglrenderer-0.6.0/vtest/vtest_server.c
++++ virglrenderer-0.6.0/vtest/vtest_server.c.new
+@@ -31,6 +31,7 @@
+ #include <netinet/in.h>
+ #include <sys/un.h>
+ #include <fcntl.h>
++#include <string.h>
+
+ #include "util.h"
+ #include "vtest.h"