2016-02-26 01:13:52 +00:00
|
|
|
description "Simple DirectMedia Layer"
|
2016-02-19 04:12:07 +00:00
|
|
|
check_pkgconfig sdl2
|
2016-02-24 04:58:08 +00:00
|
|
|
fetch_download http://www.libsdl.org/release/SDL2-2.0.4.tar.gz
|
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-02-19 04:12:07 +00:00
|
|
|
build_autotools $config_options
|