2016-02-26 01:13:52 +00:00
|
|
|
description "Simple DirectMedia Layer"
|
2016-02-19 04:12:07 +00:00
|
|
|
check_pkgconfig sdl2
|
2016-06-15 23:01:48 +00:00
|
|
|
|
2016-07-09 00:41:02 +00:00
|
|
|
variant stable fetch_download \
|
2023-05-14 17:21:55 +00:00
|
|
|
https://www.libsdl.org/release/SDL2-2.26.5.tar.gz \
|
|
|
|
ad8fea3da1be64c83c45b1d363a6b4ba8fd60f5bde3b23ec73855709ec5eabf7
|
2022-05-10 04:12:49 +00:00
|
|
|
GIT_URL=https://github.com/libsdl-org/SDL.git
|
2023-05-14 17:21:55 +00:00
|
|
|
variant stable_git fetch_git $GIT_URL release-2.26.5
|
2023-05-14 16:15:00 +00:00
|
|
|
variant latest fetch_git $GIT_URL SDL2
|
2016-02-19 04:12:07 +00:00
|
|
|
|
|
|
|
config_options=
|
2016-02-17 04:00:20 +00:00
|
|
|
|
|
|
|
# Many OS X systems have the Quartz X11 server installed, but
|
|
|
|
# we probably don't want to use it.
|
|
|
|
if [ $(uname) = "Darwin" ]; then
|
2016-02-19 04:12:07 +00:00
|
|
|
config_options+=" --disable-video-x11"
|
2016-02-17 04:00:20 +00:00
|
|
|
fi
|
|
|
|
|
2018-10-01 03:36:35 +00:00
|
|
|
# Disable assembly to avoid depending on SIMD stuff.
|
|
|
|
if [[ "$BUILD_HOST" = *-*-emscripten ]]; then
|
|
|
|
config_options+=" --disable-assembly"
|
|
|
|
fi
|
|
|
|
|
2016-07-18 02:50:53 +00:00
|
|
|
# For SDL, we do an out-of-tree build in a subdirectory, since the configure
|
|
|
|
# script can complain otherwise.
|
|
|
|
AUTOTOOLS_BUILD_PATH=build-artifacts
|
2016-02-19 04:12:07 +00:00
|
|
|
build_autotools $config_options
|