mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:07:35 +00:00
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.
This commit is contained in:
parent
ffe9a862f0
commit
2e31a479c4
2 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue