From 347996194d709cf4bfd4fa95fd349d977047f733 Mon Sep 17 00:00:00 2001 From: Merlijn Hofstra Date: Thu, 8 Jul 2010 22:12:54 +0200 Subject: [PATCH 1/1] compile against shipped SDL --- all | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/all b/all index 9480f29f..1f939e9e 100755 --- a/all +++ b/all @@ -424,9 +424,13 @@ case "$cmd" in if [ -z "$CC" ]; then export CC=gcc fi - elif [ x"`uname`" = x"Darwin" ] && { [ -d /Library/Frameworks/SDL.framework ] || [ -d "$HOME/Library/Frameworks/SDL.framework" ]; }; then - # AGL is broken in Snow Leopard, so let's default to SDL if it is available. + elif [ x"`uname`" = x"Darwin" ] && [ x"`uname -r`" = x"10.3.0" ]; then TARGETS="sv-debug sdl-debug" + # AGL is broken in Snow Leopard, so default to SDL. + if [ x"`uname -r`" != x"10.3.0" ]; then + TARGETS="$TARGETS cl-debug" + fi + export CC="gcc -I$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks/SDL.framework/Headers -F$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks" else TARGETS="sv-debug cl-debug sdl-debug" fi @@ -511,6 +515,7 @@ case "$cmd" in export PATH="$d0/misc/buildfiles/w32:$PATH" elif [ x"`uname`" = x"Darwin" ]; then export DYLD_LIBRARY_PATH="$d0/misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS" + export DYLD_FRAMEWORK_PATH="$d0/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks" client=-sdl else client=-sdl -- 2.39.2