minetest_android_deps/scripts/SDL2.sh
sfan5 153b8b73e9
Update SDL2
should fix the previous build error
2024-10-26 23:25:22 +02:00

18 lines
324 B
Bash

#!/bin/bash -e
ver=2.30.8
download () {
get_tar_archive sdl2 "https://github.com/libsdl-org/SDL/releases/download/release-${ver}/SDL2-${ver}.tar.gz"
}
build () {
cmake $srcdir/sdl2 "${CMAKE_FLAGS[@]}" \
-DSDL_SHARED=OFF \
-DSDL_STATIC=ON \
-DSDL_TEST=OFF \
-DSDL2_DISABLE_SDL2MAIN=ON
make
make_install_copy
}