ports: Add SDL3 port
I've been planning on doing this for a long time :D This is mostly based on the SDL2 backend but there are a bunch of fixes
This commit is contained in:
22
ports/SDL3/build.sh
Executable file
22
ports/SDL3/build.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash ../install.sh
|
||||
|
||||
NAME='SDL3'
|
||||
VERSION='3.4.10'
|
||||
DOWNLOAD_URL="https://github.com/libsdl-org/SDL/releases/download/release-$VERSION/SDL3-$VERSION.tar.gz#12b34280415ec8418c864408b93d008a20a6530687ee613d60bfbd20411f2785"
|
||||
DEPENDENCIES=('mesa' 'libiconv')
|
||||
|
||||
configure() {
|
||||
cmake --fresh -S . -B build -G Ninja \
|
||||
--toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake --build build || exit 1
|
||||
}
|
||||
|
||||
install() {
|
||||
DESTDIR="$DESTDIR" cmake --install build || exit 1
|
||||
}
|
||||
2447
ports/SDL3/patches/0001-add-banan_os-support.patch
Normal file
2447
ports/SDL3/patches/0001-add-banan_os-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user