From cae33305b05fee14fb6c8035b7b240a14d555c2e Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Fri, 9 Apr 2021 21:17:10 +1000 Subject: [PATCH] Ports: QuakeII port --- Ports/AvailablePorts.md | 1 + Ports/quake2/package.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 Ports/quake2/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index a570aa99fd..c4094f01c0 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -97,6 +97,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`pt2-clone`](pt2-clone/) | ProTracker 2 clone | 1.28 | https://github.com/8bitbubsy/pt2-clone | | [`python3`](python3/) | Python | 3.9.4 | https://www.python.org/ | | [`quake`](quake/) | Quake | 0.65 | https://github.com/SerenityOS/SerenityQuake | +| [`quake2`](quake2/) | QuakeII | 0.1 | https://github.com/SerenityOS/SerenityQuakeII | | [`readline`](readline/) | GNU Readline Library | 8.1 | https://tiswww.case.edu/php/chet/readline/rltop.html | | [`rsync`](rsync/) | rsync | 3.1.3 | https://rsync.samba.org/ | | [`scummvm`](scummvm/) | ScummVM | 2.2.0 | https://www.scummvm.org/ | diff --git a/Ports/quake2/package.sh b/Ports/quake2/package.sh new file mode 100755 index 0000000000..dbe6d4c08e --- /dev/null +++ b/Ports/quake2/package.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=quake2 +version=0.1 +workdir=SerenityQuakeII-master +useconfigure=true +files="https://github.com/SerenityOS/SerenityQuakeII/archive/master.tar.gz quake2.tar.gz" +makeopts="" +configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_SOURCE_DIR}/Toolchain/CMake/CMakeToolchain.txt" +depends=SDL2 +launcher_name=QuakeII +launcher_category=Games +launcher_command=quake2 + +configure() { + run cmake $configopts +} + +install() { + run make install +}