From a856e8d8058e6be9a21ca10c8ab53c21c8a2206d Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 4 Apr 2021 02:15:05 +0200 Subject: [PATCH] Ports: Add ScummVM --- Ports/AvailablePorts.md | 1 + Ports/scummvm/package.sh | 15 +++++++++++++++ Ports/scummvm/patches/config.sub.patch | 11 +++++++++++ Ports/scummvm/patches/configure.patch | 11 +++++++++++ 4 files changed, 38 insertions(+) create mode 100755 Ports/scummvm/package.sh create mode 100644 Ports/scummvm/patches/config.sub.patch create mode 100644 Ports/scummvm/patches/configure.patch 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*)