]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/all/xonotic.subr
Delete code to compile the OS X agl client.
[xonotic/xonotic.git] / misc / tools / all / xonotic.subr
index f24a051229f249b9e4c2c9ecfa38fb0de2d2bd04..225f448a88a00380e96882a0eda87c692eb0d6ac 100644 (file)
@@ -28,7 +28,6 @@ case "$cmd" in
                cleanqc=false
                compiled0=false
                debug=debug
                cleanqc=false
                compiled0=false
                debug=debug
-               snowleopardhack=false
                if [ -z "$CC" ]; then
                        export CC="gcc"
                fi
                if [ -z "$CC" ]; then
                        export CC="gcc"
                fi
@@ -78,16 +77,7 @@ case "$cmd" in
                if [ -n "$WE_HATE_OUR_USERS" ]; then
                        TARGETS="sv-$debug cl-$debug"
                elif [ x"`uname`" = x"Darwin" ]; then
                if [ -n "$WE_HATE_OUR_USERS" ]; then
                        TARGETS="sv-$debug cl-$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)
-                                       snowleopardhack=true
-                                       TARGETS="sv-$debug sdl-$debug"
-                                       ;;
-                       esac
+                       TARGETS="sv-$debug sdl-$debug"
                        export CC="$CC -fno-reorder-blocks -I$PWD/misc/buildfiles/osx/Xonotic.app/Contents/Frameworks/SDL.framework/Headers -F$PWD/misc/buildfiles/osx/Xonotic.app/Contents/Frameworks"
                else
                        TARGETS="sv-$debug cl-$debug sdl-$debug"
                        export CC="$CC -fno-reorder-blocks -I$PWD/misc/buildfiles/osx/Xonotic.app/Contents/Frameworks/SDL.framework/Headers -F$PWD/misc/buildfiles/osx/Xonotic.app/Contents/Frameworks"
                else
                        TARGETS="sv-$debug cl-$debug sdl-$debug"
@@ -109,12 +99,6 @@ case "$cmd" in
                                                        export PATH="$PATH:$d0/misc/builddeps/win32/sdl/bin"
                                                fi
                                                ;;
                                                        export PATH="$PATH:$d0/misc/builddeps/win32/sdl/bin"
                                                fi
                                                ;;
-                                       agl)
-                                               TARGETS="$TARGETS cl-$debug"
-                                               if $snowleopardhack; then
-                                                       export CC="$CC -arch i386"
-                                               fi
-                                               ;;
                                        glx|wgl)
                                                TARGETS="$TARGETS cl-$debug"
                                                ;;
                                        glx|wgl)
                                                TARGETS="$TARGETS cl-$debug"
                                                ;;
@@ -294,7 +278,7 @@ case "$cmd" in
                                client=-$1
                                shift
                                ;;
                                client=-$1
                                shift
                                ;;
-                       sdl|glx|agl)
+                       sdl|glx)
                                USE_RLWRAP=no
                                client=-$1
                                shift
                                USE_RLWRAP=no
                                client=-$1
                                shift
@@ -355,9 +339,9 @@ case "$cmd" in
                fi
                ;;
        help)
                fi
                ;;
        help)
-               $ECHO "  $SELF compile [-c] [-r|-p] [-0] [sdl|glx|wgl|agl|dedicated]"
+               $ECHO "  $SELF compile [-c] [-r|-p] [-0] [sdl|glx|wgl|dedicated]"
                $ECHO "  $SELF update-maps"
                $ECHO "  $SELF update-maps"
-               $ECHO "  $SELF run [sdl|glx|wgl|agl|dedicated] options..."
+               $ECHO "  $SELF run [sdl|glx|wgl|dedicated] options..."
                $ECHO "  $SELF compile-map mapname1 mapname2... (e.g. \"./all compile-map dance drain fuse\")"
                handled=false
                ;;
                $ECHO "  $SELF compile-map mapname1 mapname2... (e.g. \"./all compile-map dance drain fuse\")"
                handled=false
                ;;