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 \
|
|
|
|
https://www.libsdl.org/release/SDL2-2.0.4.tar.gz \
|
|
|
|
da55e540bf6331824153805d58b590a29c39d2d506c6d02fa409aedeab21174b
|
2016-06-15 23:01:48 +00:00
|
|
|
variant latest fetch_hg https://hg.libsdl.org/SDL/
|
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
|
|
|
|
|
2016-02-18 04:03:42 +00:00
|
|
|
# When targeting Windows, we need to install the directx headers first.
|
2016-02-25 02:24:09 +00:00
|
|
|
if [ $(uname) = "Cygwin" ] || [[ "$BUILD_HOST" = *mingw* ]]; then
|
2016-02-26 01:29:52 +00:00
|
|
|
dependencies directx-devel
|
2016-02-19 04:12:07 +00:00
|
|
|
config_options+=" --disable-directx"
|
2016-02-18 04:03:42 +00:00
|
|
|
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
|