mirror of
https://github.com/minetest/minetest_android_deps.git
synced 2025-01-21 20:59:37 +00:00
153b8b73e9
should fix the previous build error
18 lines
324 B
Bash
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
|
|
}
|