1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 09:27:46 +00:00

Ports: Add GemRB

GemRB is an open-source implementation of the Infinity engine by
Bioware, used in some of their classic role-playing games.
This commit is contained in:
Julian Offenhäuser 2023-02-11 02:48:29 +01:00 committed by Andreas Kling
parent b789debe07
commit 9be9bf3379
7 changed files with 183 additions and 0 deletions

40
Ports/gemrb/package.sh Executable file
View file

@ -0,0 +1,40 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='gemrb'
version='0.9.1'
useconfigure='true'
files="https://github.com/gemrb/gemrb/archive/refs/tags/v${version}.tar.gz gemrb-${version}.tar.gz 6e5dbcf7398d5566751f434b0d4647196bfbe9a813e3b65ad6a4ee2f1bbfb9ba"
auth_type='sha256'
depends=(
'freetype'
'libiconv'
'python3'
'SDL2'
'SDL2_mixer'
'zlib'
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
"-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local/"
'-DCMAKE_BUILD_TYPE=Release'
'-DDISABLE_WERROR=1'
'-DSTATIC_LINK=ON'
'-DSDL_BACKEND=SDL2'
)
icon_file='artwork/gemrb-logo.ico'
launcher_name='GemRB'
launcher_category='Games'
launcher_command='/usr/local/bin/gemrb'
configure() {
mkdir -p "${PORT_BUILD_DIR}/gemrb-${version}-build"
cd "${PORT_BUILD_DIR}/gemrb-${version}-build"
cmake -G Ninja "${configopts[@]}" "${PORT_BUILD_DIR}/gemrb-${version}"
}
build() {
ninja -C "${PORT_BUILD_DIR}/gemrb-${version}-build"
}
install() {
ninja -C "${PORT_BUILD_DIR}/gemrb-${version}-build" install
}