Files
ladybird/Ports/Another-World/package.sh
Andrew Kaster 9dff6acc55 Ports: Use new CMakeToolchain.txt located in the build directory
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.
2021-09-15 19:04:52 +04:30

23 lines
938 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port=Another-World
useconfigure=true
version=git
depends="SDL2 zlib"
workdir=Another-World-Bytecode-Interpreter-master
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt -DSDL2_INCLUDE_DIR=${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
files="https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter/archive/refs/heads/master.zip master.zip 326de7622e5f83a83fce76e6032240157a9dde83c0d65319095c7e0b312af317"
auth_type=sha256
launcher_name="Another World"
launcher_category=Games
launcher_command="/opt/Another-World/raw --datapath=/opt/Another-World"
configure() {
run cmake $configopts
}
install() {
run mkdir -p "${SERENITY_INSTALL_ROOT}/opt/Another-World"
run cp -r raw "${SERENITY_INSTALL_ROOT}/opt/Another-World"
echo "INFO: Copy BANK* and MEMLIST.BIN files from MS-DOS distribution of the game to the /opt/Another_World directory"
}