ports: Add SDL2 port

This commit is contained in:
Bananymous 2025-06-28 20:52:33 +03:00
parent 4bc3630d19
commit 69229102c4
2 changed files with 1059 additions and 0 deletions

27
ports/SDL2/build.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash ../install.sh
NAME='SDL2'
VERSION='2.30.11'
DOWNLOAD_URL="https://github.com/libsdl-org/SDL/archive/refs/tags/release-$VERSION.tar.gz#cc6136dd964854e8846c679703322f3e2a341d27a06a53f8b3f642c26f1b0cfd"
TAR_CONTENT="SDL-release-$VERSION"
DEPENDENCIES=('mesa')
configure() {
$BANAN_CMAKE \
--toolchain="$CMAKE_TOOLCHAIN_FILE" \
--fresh -GNinja -S . -B build \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_BUILD_TYPE=Release \
-DBANAN_OS=true \
-DUNIX=true \
-DSDL_LIBSAMPLERATE=OFF \
-DSDL_PTHREADS_SEM=OFF
}
build() {
$BANAN_CMAKE --build build --config Release || exit 1
}
install() {
$BANAN_CMAKE --install build || exit 1
}

File diff suppressed because it is too large Load Diff