aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/scummvm/APKBUILD45
-rw-r--r--testing/scummvm/disable-forbidden.patch14
2 files changed, 59 insertions, 0 deletions
diff --git a/testing/scummvm/APKBUILD b/testing/scummvm/APKBUILD
new file mode 100644
index 0000000000..b726b9fdc1
--- /dev/null
+++ b/testing/scummvm/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Thomas Kienlen <kommander@laposte.net>
+# Maintainer: Thomas Kienlen <kommander@laposte.net>
+pkgname=scummvm
+pkgver=2.2.0
+pkgrel=0
+pkgdesc="Engine for several graphical adventure games"
+url="https://www.scummvm.org/"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="
+ alsa-lib-dev
+ faad2-dev
+ flac-dev
+ fluidsynth-dev
+ freetype-dev
+ glu-dev
+ jpeg-dev
+ libogg-dev
+ libpng-dev
+ libtheora-dev
+ libvorbis-dev
+ sdl2-dev
+ zlib-dev
+ "
+subpackages="$pkgname-doc"
+source="
+ https://downloads.scummvm.org/frs/scummvm/$pkgver/scummvm-$pkgver.tar.gz
+ disable-forbidden.patch
+ "
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --enable-all-engines \
+ --enable-c++11 \
+ --enable-release
+ make
+}
+
+package() {
+ make install DESTDIR="$pkgdir"
+}
+
+sha512sums="53128f59d59bdb1e9cad81c8b33da311ec7e6267a142fc44fd8ebe298c3b341b0f98e03346b47fe08f8fa0d98016b80d3b4a233a6dd9f608b756f8c09160fc94 scummvm-2.2.0.tar.gz
+92e22cc65454ad29dc580b03859cf7b78fdea5614eb370dbad05460bc6aac187b4be99213912ee58c7b9a7d1488bc02b7853337465bbc8c2405f5e4aefadf0f2 disable-forbidden.patch"
diff --git a/testing/scummvm/disable-forbidden.patch b/testing/scummvm/disable-forbidden.patch
new file mode 100644
index 0000000000..1d37efc279
--- /dev/null
+++ b/testing/scummvm/disable-forbidden.patch
@@ -0,0 +1,14 @@
+This patch fix compatibility between scummvm/forbidden security enforcement
+and fortify-headers. The first is meant to avoid direct access to system
+calls for scummvm to be fully portable on a lot of platforms.
+
+--- a/common/scummsys.h
++++ b/common/scummsys.h
+@@ -464,6 +464,4 @@
+
+ #endif
+
+-#include "common/forbidden.h"
+-
+ #endif
+