summaryrefslogtreecommitdiff
path: root/Ports/SDL2/package.sh
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-08-21 14:03:33 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:30:48 +0100
commit2e31a479c45045aa988cad63938fff05b4706faa (patch)
tree32112e58306e176797c4e22126585bebc6df8343 /Ports/SDL2/package.sh
parentffe9a862f04eadd1bdae134a6903b9f666ecf65e (diff)
downloadserenity-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-xPorts/SDL2/package.sh12
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
}