mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-12-11 04:51:17 +00:00
24650af7d9
Since we're downloading arbitrary executable code from websites and running it, we should at least have some confidence it's the right thing we're running.
23 lines
710 B
Bash
23 lines
710 B
Bash
description "Simple DirectMedia Layer"
|
|
check_pkgconfig sdl2
|
|
|
|
variant stable fetch_download \
|
|
https://www.libsdl.org/release/SDL2-2.0.4.tar.gz \
|
|
da55e540bf6331824153805d58b590a29c39d2d506c6d02fa409aedeab21174b
|
|
variant latest fetch_hg https://hg.libsdl.org/SDL/
|
|
|
|
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" ] || [[ "$BUILD_HOST" = *mingw* ]]; then
|
|
dependencies directx-devel
|
|
config_options+=" --disable-directx"
|
|
fi
|
|
|
|
build_autotools $config_options
|