mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-12-03 17:43:08 +00:00
a85f1d8370
Not sure what the practical upshot of this is yet, but it at least allows it to build successfully. I've been unable to get it to build with DirectX support enabled yet because the compiler complains about missing header definitions for LPDIRECTINPUTDEVICE8 and related functions.
16 lines
537 B
Bash
16 lines
537 B
Bash
PACKAGE_VERSION=2.0.4
|
|
PACKAGE_URL=http://www.libsdl.org/release/${PACKAGE_NAME}-${PACKAGE_VERSION}.tar.gz
|
|
PKGCONFIG_NAME=sdl2
|
|
|
|
# Many OS X systems have the Quartz X11 server installed, but
|
|
# we probably don't want to use it.
|
|
if [ $(uname) = "Darwin" ]; then
|
|
PACKAGE_CONFIGURE_OPTS=--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"
|
|
PACKAGE_CONFIGURE_OPTS=--disable-directx
|
|
fi
|
|
|