diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-03-24 16:12:12 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-03 22:16:14 +0200 |
commit | 73e505fb77b5e0b7ad750d453e41ab4236ffef51 (patch) | |
tree | f617f43e2ea94aa9d6536cdcf225be1639c6385f | |
parent | c9c59602a4a47f2b930109321c7d276540b29fe1 (diff) | |
download | serenity-73e505fb77b5e0b7ad750d453e41ab4236ffef51.zip |
Ports: Return opfor to upstream
-rw-r--r-- | Ports/AvailablePorts.md | 2 | ||||
-rwxr-xr-x | Ports/opfor/package.sh | 8 | ||||
-rw-r--r-- | Ports/opfor/patches/ReadMe.md | 6 | ||||
-rw-r--r-- | Ports/opfor/patches/hlsdk-add-serenity.patch | 55 |
4 files changed, 67 insertions, 4 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 9fc0c70ff9..4833fd2303 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -160,7 +160,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`openttd-opensfx`](openttd-opensfx/) | OpenSFX audio files for OpenTTD | 1.0.3 | https://www.openttd.org/ | | [`opentyrian`](opentyrian/) | OpenTyrian | 84b820f | https://github.com/opentyrian/opentyrian | | [`opentyrian-data`](opentyrian-data/) | OpenTyrian graphics and audio | 1.0.0 | https://camanis.net/tyrian/tyrian21.zip | -| [`opfor`](opfor/) | Half-Life: Opposing Force | 1.0.0 | https://github.com/SerenityPorts/xash3d-fwgs | +| [`opfor`](opfor/) | Half-Life: Opposing Force | 2022.05.01 | https://github.com/FWGS/hlsdk-xash3d | | [`oksh`](oksh/) | oksh | 7.0 | https://github.com/ibara/oksh | | [`p7zip`](p7zip/) | p7zip | 17.04 | https://github.com/jinfeihan57/p7zip | | [`patch`](patch/) | patch (GNU) | 2.7.6 | https://savannah.gnu.org/projects/patch/ | diff --git a/Ports/opfor/package.sh b/Ports/opfor/package.sh index 696b522691..a361059911 100755 --- a/Ports/opfor/package.sh +++ b/Ports/opfor/package.sh @@ -1,10 +1,12 @@ #!/usr/bin/env -S bash ../.port_include.sh port="opfor" -version="1.0.0" +version="2022.05.01" # Bogus version, this was the last time the commit hashes were updated. +_hlsdk_commit=2ffa0261e30a4b90082965bb2539b767c5686a5f useconfigure="true" depends=("SDL2" "halflife") -workdir="hlsdk-xash3d-opfor" -files="https://github.com/SerenityPorts/hlsdk-xash3d/archive/opfor.tar.gz xash3d_gearbox.tar.gz" +workdir="hlsdk-xash3d-${_hlsdk_commit}" +files="https://github.com/FWGS/hlsdk-xash3d/archive/${_hlsdk_commit}.tar.gz hlsdk-xash3d-${_hlsdk_commit}.tar.gz 3537f0ba3baead72beecfdc011cc17cce2fd2227d9c9797767c32a869c764f66" +auth_type="sha256" launcher_name="Half-Life: Opposing Force" launcher_category="Games" diff --git a/Ports/opfor/patches/ReadMe.md b/Ports/opfor/patches/ReadMe.md new file mode 100644 index 0000000000..01a3c98829 --- /dev/null +++ b/Ports/opfor/patches/ReadMe.md @@ -0,0 +1,6 @@ +# Patches for opfor + +## `hlsdk-add-serenity.patch` + +Add SerenityOS to the supported architectures of hlsdk. + diff --git a/Ports/opfor/patches/hlsdk-add-serenity.patch b/Ports/opfor/patches/hlsdk-add-serenity.patch new file mode 100644 index 0000000000..e4936d68c5 --- /dev/null +++ b/Ports/opfor/patches/hlsdk-add-serenity.patch @@ -0,0 +1,55 @@ +From 77ad240d87d86e57d0666d45ea6d7b9127d6924b Mon Sep 17 00:00:00 2001 +From: Jesse Buhagiar <jooster669@gmail.com> +Date: Sun, 2 Jan 2022 00:10:53 +1100 +Subject: [PATCH] Build: Add SerenityOS to list of compatible systems + +This is required by the build system to spit out a library with +the correct name/platform. +--- + public/build.h | 4 ++++ + scripts/waifulib/library_naming.py | 3 +++ + 2 files changed, 7 insertions(+) + +diff --git a/public/build.h b/public/build.h +index 6e1f326d6..57a7735f4 100644 +--- a/public/build.h ++++ b/public/build.h +@@ -74,6 +74,7 @@ For more information, please refer to <http://unlicense.org/> + #undef XASH_RISCV_DOUBLEFP + #undef XASH_RISCV_SINGLEFP + #undef XASH_RISCV_SOFTFP ++#undef XASH_SERENITY + #undef XASH_WIN32 + #undef XASH_WIN64 + #undef XASH_X86 +@@ -125,6 +126,9 @@ For more information, please refer to <http://unlicense.org/> + #elif defined __HAIKU__ + #define XASH_HAIKU 1 + #define XASH_POSIX 1 ++#elif defined __serenity__ ++ #define XASH_SERENITY 1 ++ #define XASH_POSIX 1 + #else + #error "Place your operating system name here! If this is a mistake, try to fix conditions above and report a bug" + #endif +diff --git a/scripts/waifulib/library_naming.py b/scripts/waifulib/library_naming.py +index dd8250880..fb46ae604 100644 +--- a/scripts/waifulib/library_naming.py ++++ b/scripts/waifulib/library_naming.py +@@ -56,6 +56,7 @@ + 'XASH_RISCV_DOUBLEFP', + 'XASH_RISCV_SINGLEFP', + 'XASH_RISCV_SOFTFP', ++'XASH_SERENITY', + 'XASH_WIN32', + 'XASH_WIN64', + 'XASH_X86', +@@ -88,6 +89,8 @@ def configure(conf): + buildos = "dos4gw" # unused, just in case + elif conf.env.XASH_HAIKU: + buildos = "haiku" ++ elif conf.env.XASH_SERENITY: ++ buildos = "serenityos" + else: + conf.fatal("Place your operating system name in build.h and library_naming.py!\n" + "If this is a mistake, try to fix conditions above and report a bug") |