Ports: Add ScummVM

This commit is contained in:
Jelle Raaijmakers 2021-04-04 02:15:05 +02:00 committed by Andreas Kling
parent 5e5f0245b6
commit a856e8d805
4 changed files with 38 additions and 0 deletions

View file

@ -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/ |

15
Ports/scummvm/package.sh Executable file
View file

@ -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"
}

View file

@ -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* \

View file

@ -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*)