1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-15 08:07:38 +00:00
serenity/Ports/quake2/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

20 lines
460 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=quake2
version=0.1
workdir=SerenityQuakeII-master
useconfigure=true
files="https://github.com/SerenityPorts/SerenityQuakeII/archive/master.tar.gz quake2.tar.gz"
makeopts=""
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
depends=SDL2
launcher_name=QuakeII
launcher_category=Games
launcher_command=quake2
configure() {
run cmake $configopts
}
install() {
run make install
}