summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-04-04 02:15:05 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-04 08:28:47 +0200
commita856e8d8058e6be9a21ca10c8ab53c21c8a2206d (patch)
tree67939fed1f266d96f44146d65d98cbd561231042 /Ports
parent5e5f0245b6aa42d07343b8ae04b8dbfb175fe4ef (diff)
downloadserenity-a856e8d8058e6be9a21ca10c8ab53c21c8a2206d.zip
Ports: Add ScummVM
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/scummvm/package.sh15
-rw-r--r--Ports/scummvm/patches/config.sub.patch11
-rw-r--r--Ports/scummvm/patches/configure.patch11
4 files changed, 38 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index ded3eeb348..9129cf0aa3 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -72,6 +72,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`python3`](python3/) | Python | 3.9.2 | https://www.python.org/ |
| [`quake`](quake/) | Quake | 0.65 | https://github.com/SerenityOS/SerenityQuake |
| [`rsync`](rsync/) | rsync | 3.1.3 | https://rsync.samba.org/ |
+| [`scummvm`](scummvm/) | ScummVM | 2.2.0 | https://www.scummvm.org/ |
| [`SDL2`](SDL2/) | Simple DirectMedia Layer (SDL2) | | https://github.com/SerenityOS/SDL |
| [`SDL2_image`](SDL2_image/) | SDL2\_image (Image loading add-on for SDL2) | 2.0.5 | https://www.libsdl.org/projects/SDL_image/ |
| [`SDL2_mixer`](SDL2_mixer/) | SDL2\_mixer (audio mixer add-on for SDL2) | 2.0.4 | https://www.libsdl.org/projects/SDL_mixer/ |
diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh
new file mode 100755
index 0000000000..580231582f
--- /dev/null
+++ b/Ports/scummvm/package.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=scummvm
+useconfigure="true"
+version="2.2.0"
+files="https://downloads.scummvm.org/frs/scummvm/${version}/scummvm-${version}.tar.gz scummvm-${version}.tar.gz"
+depends="SDL2"
+
+configure() {
+ export LIBS="-lgui -lgfx -lcore"
+ run ./configure \
+ --host="${SERENITY_ARCH}-pc-serenity" \
+ --prefix=/usr \
+ --opengl-mode=none \
+ --with-sdl-prefix="${SERENITY_BUILD_DIR}/Root/usr"
+}
diff --git a/Ports/scummvm/patches/config.sub.patch b/Ports/scummvm/patches/config.sub.patch
new file mode 100644
index 0000000000..9d8c1d8010
--- /dev/null
+++ b/Ports/scummvm/patches/config.sub.patch
@@ -0,0 +1,11 @@
+--- scummvm-2.2.0/config.sub 2020-09-13 23:05:37.000000000 +0200
++++ scummvm-2.2.0-patched/config.sub 2021-04-04 01:14:55.423219188 +0200
+@@ -1341,7 +1341,7 @@
+ gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
+ | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
+ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
+- | sym* | kopensolaris* | plan9* \
++ | sym* | kopensolaris* | plan9* | serenity* \
+ | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
+ | aos* | aros* | cloudabi* | sortix* | twizzler* \
+ | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
diff --git a/Ports/scummvm/patches/configure.patch b/Ports/scummvm/patches/configure.patch
new file mode 100644
index 0000000000..b1426e8210
--- /dev/null
+++ b/Ports/scummvm/patches/configure.patch
@@ -0,0 +1,11 @@
+--- scummvm-2.2.0/configure 2020-09-13 23:05:37.000000000 +0200
++++ scummvm-2.2.0-patched/configure 2021-04-04 01:21:54.809774246 +0200
+@@ -3917,7 +3917,7 @@
+ amigaos* | cygwin* | dreamcast | ds | gamecube | mingw* | morphos | n64 | ps3 | psp2 | psp | riscos | wii)
+ _posix=no
+ ;;
+- 3ds | android | androidsdl | beos* | bsd* | darwin* | freebsd* | gnu* | gph-linux | haiku* | hpux* | iphone | ios7 | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | solaris* | sunos* | switch | uclinux*)
++ 3ds | android | androidsdl | beos* | bsd* | darwin* | freebsd* | gnu* | gph-linux | haiku* | hpux* | iphone | ios7 | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | serenity* | solaris* | sunos* | switch | uclinux*)
+ _posix=yes
+ ;;
+ os2-emx*)