ports: Replace SDL2 with sdl2-compat
There is no need to keep two SDL versions around
This commit is contained in:
24
ports/sdl2-compat/build.sh
Executable file
24
ports/sdl2-compat/build.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash ../install.sh
|
||||
|
||||
NAME='sdl2-compat'
|
||||
VERSION='2.32.70'
|
||||
DOWNLOAD_URL="https://github.com/libsdl-org/sdl2-compat/releases/download/release-$VERSION/sdl2-compat-$VERSION.tar.gz#998fa62557eb46ffe7e5c3e2c123bc332f7df9d9f593b3ceed88ed1158428a44"
|
||||
DEPENDENCIES=('SDL3')
|
||||
|
||||
configure() {
|
||||
cmake --fresh -S . -B build -G Ninja \
|
||||
--toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSDL2COMPAT_X11=OFF \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake --build build || exit 1
|
||||
}
|
||||
|
||||
install() {
|
||||
DESTDIR="$DESTDIR" cmake --install build || exit 1
|
||||
ln -s sdl2-compat.pc "$DESTDIR"/usr/lib/pkgconfig/sdl2.pc || exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user