]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Merge remote branch 'refs/remotes/origin/merlijn/sdl-osx'
authorRudolf Polzer <divverent@alientrap.org>
Fri, 9 Jul 2010 21:08:38 +0000 (23:08 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 9 Jul 2010 21:08:38 +0000 (23:08 +0200)
1  2 
all

diff --combined all
index a8354da815d338b035d995c4fc5b0e1ed45c001f,2489f5aa991a9e202816c0053b4bff0fc656bd3c..bb0fa4833923a3cd08bd995cde7e5a42e2169db4
--- 1/all
--- 2/all
+++ b/all
@@@ -398,7 -398,7 +398,7 @@@ case "$cmd" i
                        fi
                        rem=`git config "branch.$r.remote" || echo origin`
                        bra=`git config "branch.$r.merge" || echo "$r"`
 -                      upstream="$rem/$bra"
 +                      upstream="$rem/${bra#refs/heads/}"
                        if ! git rev-parse "$upstream" >/dev/null 2>&1; then
                                upstream="origin/`repobranch "$d"`"
                        fi
                        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.
-                       TARGETS="sv-debug sdl-debug"
+               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"
                fi
                        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