From: merlijn Date: Fri, 9 Jul 2010 20:48:47 +0000 (+0200) Subject: add cleaner OSX version filter X-Git-Tag: xonotic-v0.1.0preview~374^2 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=bfe3e801b04693bbe695332e38a23afc543be844;hp=347996194d709cf4bfd4fa95fd349d977047f733 add cleaner OSX version filter --- diff --git a/all b/all index 1f939e9e..2489f5aa 100755 --- a/all +++ b/all @@ -424,12 +424,16 @@ case "$cmd" in if [ -z "$CC" ]; then export CC=gcc fi - 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 + elif [ x"`uname`" = x"Darwin" ]; then + case "`uname -r`" in + ?.*) + TARGETS="sv-debug cl-debug sdl-debug" + ;; + *) + # AGL cannot be compiled on systems with a kernel > 10.x (Snow Leopard) + TARGETS="sv-debug sdl-debug" + ;; + esac 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"