2022-05-21 18:33:02 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-10-01 23:39:59 +00:00
|
|
|
port='sdl12-compat'
|
|
|
|
version='1.2.56'
|
2022-05-21 18:33:02 +00:00
|
|
|
workdir=sdl12-compat-release-${version}
|
2022-10-01 23:39:59 +00:00
|
|
|
useconfigure='true'
|
|
|
|
files="https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-${version}.tar.gz ${port}-${version}.tar.gz f62f3e15f95aade366ee6c03f291e8825c4689390a6be681535259a877259c58"
|
|
|
|
auth_type='sha256'
|
|
|
|
configopts=(
|
|
|
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=${SERENITY_INSTALL_ROOT}/usr/local/"
|
|
|
|
"-B./build"
|
|
|
|
)
|
2022-05-21 18:33:02 +00:00
|
|
|
depends=("SDL2")
|
|
|
|
|
|
|
|
configure() {
|
|
|
|
run cmake "${configopts[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
(
|
|
|
|
cd ${workdir}/build/
|
|
|
|
make "${makeopts[@]}"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
(
|
|
|
|
cd ${workdir}/build/
|
|
|
|
make install
|
|
|
|
)
|
|
|
|
}
|