diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-08-21 14:03:33 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 13:30:48 +0100 |
commit | 2e31a479c45045aa988cad63938fff05b4706faa (patch) | |
tree | 32112e58306e176797c4e22126585bebc6df8343 /Ports/SDL2/package.sh | |
parent | ffe9a862f04eadd1bdae134a6903b9f666ecf65e (diff) | |
download | serenity-2e31a479c45045aa988cad63938fff05b4706faa.zip |
Ports/SDL2: Do an out-of-tree build
SDL 2.24.0 starts having include loops if we try to do an in-tree build
against its wishes, so let's not do that anymore.
Diffstat (limited to 'Ports/SDL2/package.sh')
-rwxr-xr-x | Ports/SDL2/package.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Ports/SDL2/package.sh b/Ports/SDL2/package.sh index b8389fdf6a..d6b07c725f 100755 --- a/Ports/SDL2/package.sh +++ b/Ports/SDL2/package.sh @@ -8,9 +8,17 @@ configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "- depends=("libiconv") configure() { - run cmake "${configopts[@]}" + mkdir -p "${PORT_BUILD_DIR}/SDL2-${version}-build" + cd "${PORT_BUILD_DIR}/SDL2-${version}-build" + cmake "${configopts[@]}" "${PORT_BUILD_DIR}/SDL2-${version}" +} + +build() { + cd "${PORT_BUILD_DIR}/SDL2-${version}-build" + make "${makeopts[@]}" } install() { - run make install + cd "${PORT_BUILD_DIR}/SDL2-${version}-build" + make install } |