Files
banan-os/ports/SDL3/build.sh
Bananymous 01f0871a83 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
2026-07-04 23:55:23 +03:00

23 lines
558 B
Bash
Executable File

#!/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
}