aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Diego Alegandro Diaz Urbaneja <sodomon2@gmail.com>2020-02-01 00:47:02 -0400
committerRasmus Thomsen <oss@cogitri.dev>2020-02-10 22:02:24 +0100
commit07670bfbc9fa63b162e70f29135a60dd06aaeafc (patch)
treebcd631d07cf2e9b1f890787ffbea24e4b4e84c41
parentf254bd79f2374d1bf47159e5f88659947c5aaa40 (diff)
downloadaports-07670bfbc9fa63b162e70f29135a60dd06aaeafc.tar.bz2
aports-07670bfbc9fa63b162e70f29135a60dd06aaeafc.tar.xz
testing/godot: new aport
An advanced, feature packed, multi-platform 2D and 3D game engine http://www.godotengine.org
-rw-r--r--testing/godot/APKBUILD36
-rw-r--r--testing/godot/crash_handler_x11.patch27
2 files changed, 63 insertions, 0 deletions
diff --git a/testing/godot/APKBUILD b/testing/godot/APKBUILD
new file mode 100644
index 0000000000..0c9ed6ffb8
--- /dev/null
+++ b/testing/godot/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
+# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
+pkgname=godot
+pkgver=3.1.2
+pkgrel=0
+pkgdesc="An advanced, feature packed, multi-platform 2D and 3D game engine"
+url="http://www.godotengine.org"
+arch="x86_64" # deactivated for other architecture due to conflicts between binaries
+license="MIT"
+# TODO: Use system freetype instead of bundled one.
+makedepends="scons gcc python2 libxcursor-dev libxinerama-dev
+ libxrandr-dev libxi-dev libx11-dev alsa-lib-dev mesa-dev yasm-dev"
+options="!check" # no testsuites
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/godotengine/godot/archive/$pkgver-stable.tar.gz
+ crash_handler_x11.patch"
+builddir="$srcdir/$pkgname-$pkgver-stable"
+
+build() {
+ scons platform=x11 \
+ tools=yes \
+ target=release_debug \
+ use_llvm=no \
+ colored=yes \
+ pulseaudio=no bits=64 -j4
+}
+
+package() {
+ install -Dm644 misc/dist/linux/org.godotengine.Godot.desktop "$pkgdir/usr/share/applications/godot.desktop"
+ install -Dm644 icon.svg "$pkgdir/usr/share/pixmaps/godot.svg"
+
+ install -D -m755 bin/godot.x11.opt.tools.64 "$pkgdir/usr/bin/godot"
+ install -D -m644 misc/dist/linux/godot.6 "$pkgdir/usr/share/man/man6/godot.6"
+}
+sha512sums="b38ae8400c25d580b8aa642c857948158d7ea4a6f6103679984cf1119fb2d0455647f2e6d1262b32bc963b8a28c780a74aa0d2e9a1df8d98c0e8bc671d3f4f1f godot-3.1.2.tar.gz
+3d1d31a55dedbf66aba212d127351d9d9c89e2575bd50cdb6d9a6c40c240fdfdcb508f03562aedd8ef04acf8442ad5422522f0242a49ae06819a2f97983f0b44 crash_handler_x11.patch"
diff --git a/testing/godot/crash_handler_x11.patch b/testing/godot/crash_handler_x11.patch
new file mode 100644
index 0000000000..951c8c028a
--- /dev/null
+++ b/testing/godot/crash_handler_x11.patch
@@ -0,0 +1,27 @@
+--- a/platform/x11/crash_handler_x11.cpp
++++ b/platform/x11/crash_handler_x11.cpp
+@@ -49,7 +49,7 @@
+ if (OS::get_singleton() == NULL) {
+ abort();
+ }
+-
++#if defined(__linux__) && defined(__GLIBC__)
+ void *bt_buffer[256];
+ size_t size = backtrace(bt_buffer, 256);
+ String _execpath = OS::get_singleton()->get_executable_path();
+@@ -89,7 +89,6 @@
+ free(demangled);
+ }
+ }
+-
+ List<String> args;
+
+ char str[1024];
+@@ -115,6 +114,7 @@
+ free(strings);
+ }
+ fprintf(stderr, "-- END OF BACKTRACE --\n");
++#endif
+
+ // Abort to pass the error to the OS
+ abort();