mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-12-11 04:51:17 +00:00
df955bf2b7
These modules encapsulate individual pieces of functionality and make the code far more maintainable. This is a pretty big refactoring but overall a big win.
22 lines
585 B
Bash
22 lines
585 B
Bash
|
|
PACKAGE_VERSION=2.0.4
|
|
|
|
check_pkgconfig sdl2
|
|
fetch_download http://www.libsdl.org/release/${PACKAGE_NAME}-${PACKAGE_VERSION}.tar.gz
|
|
|
|
config_options=
|
|
|
|
# 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"
|
|
fi
|
|
|
|
# When targeting Windows, we need to install the directx headers first.
|
|
if [ $(uname) = "Cygwin" ] || pattern_match "*mingw*" "$BUILD_HOST"; then
|
|
DEPENDENCIES="directx-devel"
|
|
config_options+=" --disable-directx"
|
|
fi
|
|
|
|
build_autotools $config_options
|
|
|