aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-09-16 11:38:13 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-09-16 10:02:50 +0000
commit56ad1644b3cd8e526591122a493fa7ef0d9aef26 (patch)
tree9c7c6f12dd2200594640f7d063d4c9e292179395
parent8b7ecb6079b1f13660626dbbd893ec1fe9fb9ed1 (diff)
downloadaports-56ad1644b3cd8e526591122a493fa7ef0d9aef26.tar.gz
aports-56ad1644b3cd8e526591122a493fa7ef0d9aef26.tar.bz2
aports-56ad1644b3cd8e526591122a493fa7ef0d9aef26.tar.xz
testing/monado: new aport
-rw-r--r--testing/monado/APKBUILD50
-rw-r--r--testing/monado/fix-compilation-on-musl.patch33
2 files changed, 83 insertions, 0 deletions
diff --git a/testing/monado/APKBUILD b/testing/monado/APKBUILD
new file mode 100644
index 0000000000..533bbc0873
--- /dev/null
+++ b/testing/monado/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=monado
+pkgver=0.3.0
+pkgrel=0
+pkgdesc="The open source OpenXR runtime"
+url="https://monado.freedesktop.org"
+arch="all"
+license="BSL-1.0"
+makedepends="
+ cmd:glslangValidator
+ cmd:wayland-scanner
+ doxygen
+ eigen-dev
+ eudev-dev
+ ffmpeg-dev
+ graphviz
+ libjpeg-turbo-dev
+ libxrandr-dev
+ mesa-dev
+ meson
+ opencv-dev
+ openhmd-dev
+ sdl2-dev
+ v4l-utils-dev
+ vulkan-loader-dev
+ wayland-dev
+ wayland-protocols
+ zlib-dev
+ "
+source="https://gitlab.freedesktop.org/monado/monado/-/archive/v$pkgver/monado-v$pkgver.tar.gz
+ fix-compilation-on-musl.patch
+ "
+builddir="$srcdir/$pkgname-v$pkgver"
+
+build() {
+ abuild-meson . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+}
+
+sha512sums="2faa4e5e5f64bcd2213abb312e6e3b1fad6a0fa1930411f97c82a24f03f869fc67633c8089229f7e7e06f0399553e9b7aec71a53815f24aeddeabfedbfa67694 monado-v0.3.0.tar.gz
+3fecf3f03d298991b916db2c783b753fd9abe66e7bd33304a57c36aaf27f9e35236b8ea05676edb280326c02fcf2ca6acf7d1b10e329e16feea8b1c24c43e428 fix-compilation-on-musl.patch"
diff --git a/testing/monado/fix-compilation-on-musl.patch b/testing/monado/fix-compilation-on-musl.patch
new file mode 100644
index 0000000000..1ae80e9894
--- /dev/null
+++ b/testing/monado/fix-compilation-on-musl.patch
@@ -0,0 +1,33 @@
+From 71f912ffc57548c8f47f1567844ed41a5f05bc83 Mon Sep 17 00:00:00 2001
+From: Bart Ribbers <bribbers@disroot.org>
+Date: Wed, 16 Sep 2020 10:44:06 +0200
+Subject: [PATCH] Fix compilation on Musl
+
+Without this fix, compilation failed on Musl due to ssize_t being an
+unknown type
+
+In file included from ../src/xrt/state_trackers/prober/p_prober.c:15:
+../src/xrt/state_trackers/prober/p_prober.h:67:2: error: unknown type name 'ssize_t'
+ 67 | ssize_t interface;
+ | ^~~~~~~
+---
+ src/xrt/state_trackers/prober/p_prober.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/xrt/state_trackers/prober/p_prober.h b/src/xrt/state_trackers/prober/p_prober.h
+index bf7a3417..793c14a4 100644
+--- a/src/xrt/state_trackers/prober/p_prober.h
++++ b/src/xrt/state_trackers/prober/p_prober.h
+@@ -23,6 +23,9 @@
+ #include <libuvc/libuvc.h>
+ #endif
+
++#ifndef __KERNEL__
++#include <sys/types.h>
++#endif
+
+ /*
+ *
+--
+GitLab
+