mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
Now that we're generating the CMake toolchain file in the build
directory, we need to redirect the ports that use CMake to the new
location. Looking into this showed that there's still a bunch of work to
do in general to make the ports agnostic to which toolchain they're
using, there's a lot of hard-coded ${ARCH}-pc-serenity-gcc assumptions
still here.
22 lines
743 B
Bash
Executable File
22 lines
743 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=PrinceOfPersia
|
|
useconfigure=true
|
|
version=git
|
|
depends="SDL2 SDL2_image"
|
|
workdir=SDLPoP-86988c668eeaa10f218e1d4938fc5b4e42314d68
|
|
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
|
files="https://github.com/NagyD/SDLPoP/archive/86988c668eeaa10f218e1d4938fc5b4e42314d68.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
|
|
auth_type=sha256
|
|
launcher_name="Prince of Persia"
|
|
launcher_category=Games
|
|
launcher_command=/opt/PrinceOfPersia/prince
|
|
|
|
configure() {
|
|
run cmake $configopts ./src
|
|
}
|
|
|
|
install() {
|
|
mkdir -p "${SERENITY_INSTALL_ROOT}/opt/PrinceOfPersia"
|
|
run cp -r prince data SDLPoP.ini "${SERENITY_INSTALL_ROOT}/opt/PrinceOfPersia"
|
|
}
|