Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ports: Update OpenRCT2 and GemRB #23702

Merged
merged 2 commits into from Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Ports/AvailablePorts.md
Expand Up @@ -91,7 +91,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`gawk`](gawk/) | GNU awk | 5.3.0 | https://www.gnu.org/software/gawk/ |
| [`gcc`](gcc/) | GNU Compiler Collection | 13.2.0 | https://gcc.gnu.org/ |
| [`gdb`](gdb/) | GNU Project Debugger | 11.2 | https://sourceware.org/gdb |
| [`gemrb`](gemrb/) | GemRB | 0.9.1 | https://gemrb.org/ |
| [`gemrb`](gemrb/) | GemRB | 0.9.2 | https://gemrb.org/ |
| [`genemu`](genemu/) | Genesis / MegaDrive Emulator | e39f690 | https://github.com/rasky/genemu |
| [`genext2fs`](genext2fs/) | genext2fs | 1.5.0 | https://github.com/bestouff/genext2fs |
| [`gettext`](gettext/) | GNU gettext | 0.22.4 | https://www.gnu.org/software/gettext/ |
Expand Down Expand Up @@ -234,7 +234,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`ObjFW`](ObjFW/) | ObjFW | 8d19ba9 | https://objfw.nil.im/ |
| [`oksh`](oksh/) | oksh | 7.1 | https://github.com/ibara/oksh |
| [`OpenJDK`](OpenJDK/) | OpenJDK | 17.0.6 | https://openjdk.java.net/ |
| [`openrct2`](openrct2/) | OpenRCT2 | 0.4.8 | https://openrct2.org/ |
| [`openrct2`](openrct2/) | OpenRCT2 | 0.4.9 | https://openrct2.org/ |
| [`openssh`](openssh/) | OpenSSH | 9.0-94eb685 | https://github.com/openssh/openssh-portable |
| [`openssl`](openssl/) | OpenSSL | 3.1.2 | https://www.openssl.org/ |
| [`openttd`](openttd/) | OpenTTD | 13.4 | https://www.openttd.org/ |
Expand Down
14 changes: 7 additions & 7 deletions Ports/gemrb/package.sh
@@ -1,17 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='gemrb'
version='0.9.1'
version='0.9.2'
useconfigure='true'
files=(
"https://github.com/gemrb/gemrb/archive/refs/tags/v${version}.tar.gz#6e5dbcf7398d5566751f434b0d4647196bfbe9a813e3b65ad6a4ee2f1bbfb9ba"
"https://github.com/gemrb/gemrb/archive/refs/tags/v${version}.tar.gz#ea614c067483606dab680ab18cd50527f56803bd46e0888e3c786eec05d3bb7d"
)
depends=(
'freetype'
'libiconv'
'python3'
'SDL2'
'freetype'
'libiconv'
'python3'
'SDL2'
'SDL2_mixer'
'zlib'
'zlib'
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
Expand Down
Expand Up @@ -12,7 +12,7 @@ this is to hard-code these paths in the header file.
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/cmake_config.h.in b/cmake/cmake_config.h.in
index 17584b33da6e9cc610d8be7d1a4f28b8b587844a..02a6214f4215723eb4c90b65f67aea6d508be193 100644
index 8368c3b0e9b1b67b9cbf18a1abd8b2194733094b..4bc1c7b283dce482b1e40561c46a82c954d79ac9 100644
--- a/cmake/cmake_config.h.in
+++ b/cmake/cmake_config.h.in
@@ -10,9 +10,9 @@
Expand Down
Expand Up @@ -8,15 +8,15 @@ Subject: [PATCH] Create SDL2 renderer as unaccelerated
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gemrb/plugins/SDLVideo/SDL20Video.cpp b/gemrb/plugins/SDLVideo/SDL20Video.cpp
index 36dc17caffc89bed2610d26d19e97290905bcf20..158ee2fe5eb1b396c1a63b1e7bc898bd1ae224fc 100644
index 8d906ec6066cac11a91ebcc372810b3e0a4f71db..741f4085458a6b7cc03c7613e8fa93beb7a60a2d 100644
--- a/gemrb/plugins/SDLVideo/SDL20Video.cpp
+++ b/gemrb/plugins/SDLVideo/SDL20Video.cpp
@@ -139,7 +139,7 @@ int SDL20VideoDriver::CreateSDLDisplay(const char* title)
@@ -171,7 +171,7 @@ int SDL20VideoDriver::CreateSDLDisplay(const char* title, bool vsync)
SetWindowIcon(window);
#endif

- renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_TARGETTEXTURE | SDL_RENDERER_ACCELERATED);
+ renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_TARGETTEXTURE);
SDL_RendererInfo info;
SDL_GetRendererInfo(renderer, &info);
Log(DEBUG, "SDL20Video", "Renderer: {}", info.name);
- int rendererFlags = SDL_RENDERER_TARGETTEXTURE | SDL_RENDERER_ACCELERATED;
+ int rendererFlags = SDL_RENDERER_TARGETTEXTURE;
if (vsync) {
rendererFlags |= SDL_RENDERER_PRESENTVSYNC;
}
6 changes: 3 additions & 3 deletions Ports/openrct2/package.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='openrct2'
version='0.4.8'
version='0.4.9'
depends=(
'curl'
'flac'
Expand All @@ -18,8 +18,8 @@ depends=(
'zlib'
)
files=(
"https://github.com/OpenRCT2/OpenRCT2/archive/refs/tags/v${version}.tar.gz#b79bdfd91e2676b0238a94ef3a53bf13a6b6ba417a8d77056a8ea2a903967fd1"
"https://github.com/OpenRCT2/OpenRCT2/releases/download/v${version}/OpenRCT2-${version}-linux-jammy-x86_64.tar.gz#a9152601612e2c5249324bce849c5fbdbfe40886128cf3848aae4b62b0c51936"
"https://github.com/OpenRCT2/OpenRCT2/archive/refs/tags/v${version}.tar.gz#d9eb7bb99923152122716707888a6182491662e106bef91b86106fa7b45b4309"
"https://github.com/OpenRCT2/OpenRCT2/releases/download/v${version}/OpenRCT2-${version}-linux-jammy-x86_64.tar.gz#f388d46956f32755a504df1582fea7b800a8c100333667cb3f9c495c5c9d7201"
)
useconfigure='true'
workdir="OpenRCT2-${version}"
Expand Down
Expand Up @@ -9,7 +9,7 @@ We teach OpenRCT2 about the name of our platform.
1 file changed, 3 insertions(+)

diff --git a/src/openrct2/Version.h b/src/openrct2/Version.h
index 4495fa0b66b840b88034d2e8e3e023b1a1edfb68..1212b43a3745a46ab4ed6d4316ab4894a1f96ddc 100644
index 14c26ea19956318a1a82d21d69a63c6a2cebdbe6..07df815d073a4e623ac9ae5ff01936e1055a9891 100644
--- a/src/openrct2/Version.h
+++ b/src/openrct2/Version.h
@@ -70,6 +70,9 @@
Expand Down
36 changes: 0 additions & 36 deletions Ports/openrct2/patches/0002-Add-missing-includes.patch

This file was deleted.

Expand Up @@ -9,10 +9,10 @@ This irons out some compiler warnings that turned into errors when compiling a r
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e10c7a2f1115916f52c389f0774b69aa03c6cf37..59df8b88d3b937fd8c61d6f8b98c4ba4d12783bc 100644
index 0f62a0bb62ebb1ea867898f3eb18e819d6a513ac..6a5da9dd95fb23f2063e79951b0df29032f9dcc0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -301,6 +301,8 @@ else ()
@@ -304,6 +304,8 @@ else ()
# unused-const-variable[=2] would check for unused values from headers as well
ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_UNUSED_CONST_VARIABLE -Wunused-const-variable=1)
ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WNO_CLOBBERED -Wno-clobbered)
Expand All @@ -21,7 +21,7 @@ index e10c7a2f1115916f52c389f0774b69aa03c6cf37..59df8b88d3b937fd8c61d6f8b98c4ba4
# Disabled due to problems compiling OpenSSL on macOS.
# ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_DOCUMENTATION -Wdocumentation)

@@ -310,7 +312,7 @@ else ()
@@ -313,7 +315,7 @@ else ()
ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_REDUNDANT_DECLS -Wredundant-decls)

# Currently used MinGW w/GCC 7.2 doesn't provide sane error messages for this
Expand Down
Expand Up @@ -9,10 +9,10 @@ Normally, the build system uses one of the compiled binaries to pack assets into
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59df8b88d3b937fd8c61d6f8b98c4ba4d12783bc..86e6b82ae0a2cdc1fd6e209bd39b9b9292411f47 100644
index 6a5da9dd95fb23f2063e79951b0df29032f9dcc0..aff9e6bed903b3701fff69c098adf619326f92c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -389,7 +389,7 @@ endif ()
@@ -395,7 +395,7 @@ endif ()


# g2
Expand Down
16 changes: 5 additions & 11 deletions Ports/openrct2/patches/ReadMe.md
Expand Up @@ -6,37 +6,31 @@ Add SerenityOS platform detection

We teach OpenRCT2 about the name of our platform.

## `0002-Add-missing-includes.patch`

Add missing includes

These are missing when compiling the release build.

## `0003-Read-the-executable-path-from-proc-self-exe.patch`
## `0002-Read-the-executable-path-from-proc-self-exe.patch`

Read the executable path from /proc/self/exe

When looking for the executable path, we behave exactly like Linux.

## `0004-Remove-use-of-strptime.patch`
## `0003-Remove-use-of-strptime.patch`

Remove use of strptime()

This is a hack to patch out strptime() from duktape, which is not being used by this project.

## `0005-Add-compile-options-to-CMakeLists.txt.patch`
## `0004-Add-compile-options-to-CMakeLists.txt.patch`

Add compile options to CMakeLists.txt

This irons out some compiler warnings that turned into errors when compiling a release build.

## `0006-Disable-locale-detection-for-writing-the-default-con.patch`
## `0005-Disable-locale-detection-for-writing-the-default-con.patch`

Disable locale detection for writing the default config.ini

At the time of writing, locale support in Serenity is not great. We always returned the "C" locale, which this code interpreted wrong. Since this is just used for writing a default value to the game config (which can be changed later), we just default to English.

## `0007-Disable-g2.dat-target.patch`
## `0006-Disable-g2.dat-target.patch`

Disable g2.dat target

Expand Down