chocpkg/pkgdef/SDL2.sh

20 lines
565 B
Bash
Raw Normal View History

description "Simple DirectMedia Layer"
check_pkgconfig sdl2
fetch_download http://www.libsdl.org/release/SDL2-2.0.4.tar.gz
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
config_options+=" --disable-video-x11"
2016-02-17 04:00:20 +00:00
fi
# When targeting Windows, we need to install the directx headers first.
if [ $(uname) = "Cygwin" ] || [[ "$BUILD_HOST" = *mingw* ]]; then
dependencies directx-devel
config_options+=" --disable-directx"
fi
build_autotools $config_options