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:
2026-07-04 23:55:23 +03:00
parent ac1fafedcc
commit 01f0871a83
2 changed files with 2469 additions and 0 deletions

22
ports/SDL3/build.sh Executable file
View 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
}

File diff suppressed because it is too large Load Diff