aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-09-14 19:07:37 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-09-14 20:46:16 +0000
commit5a170e2e0f6d02ebfcca8baa6f620f48233bea8c (patch)
treef2964ea0c3aa092fb6c4054a941493d70ae29ecb
parent1e761ebba7146cc95d9e67257ab32a47ce763d58 (diff)
downloadaports-5a170e2e0f6d02ebfcca8baa6f620f48233bea8c.tar.gz
aports-5a170e2e0f6d02ebfcca8baa6f620f48233bea8c.tar.bz2
aports-5a170e2e0f6d02ebfcca8baa6f620f48233bea8c.tar.xz
testing/gxr: new aport
-rw-r--r--testing/gxr/APKBUILD44
-rw-r--r--testing/gxr/fix-build.patch15
2 files changed, 59 insertions, 0 deletions
diff --git a/testing/gxr/APKBUILD b/testing/gxr/APKBUILD
new file mode 100644
index 0000000000..6c6766eda8
--- /dev/null
+++ b/testing/gxr/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=gxr
+pkgver=0.15.1
+pkgrel=0
+pkgdesc="A glib wrapper for the OpenVR and the OpenXR APIs"
+url="https://gitlab.freedesktop.org/xrdesktop/gxr"
+arch="all"
+license="MIT AND CC-BY-SA-4.0"
+depends_dev="
+ json-glib-dev
+ openxr-dev
+ "
+makedepends="$depends_dev
+ cmd:glslangValidator
+ cmd:gtkdoc-scan
+ gtk+3.0-dev
+ gulkan-dev
+ meson
+ "
+source="https://gitlab.freedesktop.org/xrdesktop/gxr/-/archive/$pkgver/gxr-$pkgver.tar.gz
+ fix-build.patch
+ "
+subpackages="$pkgname-dev"
+
+build() {
+ abuild-meson \
+ -Dapi_doc=true \
+ -Dtests=false \
+ . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ # The XR tests require a working VR setup
+ meson test --no-rebuild -v -C output --no-suite gxr:xr --no-suite post-install
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+}
+
+sha512sums="6305882b6a963162fee04e6f686f08865c2f367836ea92432e73354b9e22282f3e1a720e9897152cdb98246355d67b8afa85146ba00eba25608568b1aacf20e8 gxr-0.15.1.tar.gz
+247bf4df132f05e9792e73d674f5887a84508398233fa13e8d39e7788a3916a15ab05175f6504ebddff38d1e3d88eea051acf6afc1d0758fcd9f8f0022cf28d6 fix-build.patch"
diff --git a/testing/gxr/fix-build.patch b/testing/gxr/fix-build.patch
new file mode 100644
index 0000000000..725c50e330
--- /dev/null
+++ b/testing/gxr/fix-build.patch
@@ -0,0 +1,15 @@
+This fixes an issue where Musl doesn't set itself as POSIX compatible
+
+diff --git a/meson.build b/meson.build
+index 567ee7a..6bbbe28 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1,7 +1,7 @@
+ project('gxr', 'c', version: '0.15.1',
+ meson_version: '>= 0.49.0',
+ default_options : [
+- 'c_std=c11',
++ 'c_std=gnu99',
+ 'warning_level=3',
+ ],
+ )