diff --git a/Makefile.smokinguns b/Makefile.smokinguns index b9aa9316..97589fc7 100644 --- a/Makefile.smokinguns +++ b/Makefile.smokinguns @@ -1,6 +1,6 @@ ######################################################################## # Based on ioQuake3 commit see https://github.com/ioquake/ioq3 -IOQ3_GITHUB_COMMIT = b7f5971ab8 +IOQ3_GITHUB_COMMIT = 6d5041a960 ######################################################################## ifeq ($(BUILD_CLIENT),) # Build client by default diff --git a/make-macosx-ub.sh b/make-macosx-ub.sh index 266f75d3..c3eb440a 100755 --- a/make-macosx-ub.sh +++ b/make-macosx-ub.sh @@ -1,6 +1,5 @@ #!/bin/bash CC=gcc-4.0 -BINARY=smokinguns.ub cd `dirname $0` if [ ! -f Makefile ]; then @@ -8,12 +7,6 @@ if [ ! -f Makefile ]; then exit 1 fi -SG_VERSION=`grep '^VERSION *=' Makefile.local | sed -e 's/.*= *\(.*\)/\1/'` - -# We only care if we're >= 10.4, not if we're specifically Tiger. -# "8" is the Darwin major kernel version. -TIGERHOST=`uname -r |perl -w -p -e 's/\A(\d+)\..*\Z/$1/; $_ = (($_ >= 8) ? "1" : "0");'` - # we want to use the oldest available SDK for max compatiblity. However 10.4 and older # can not build 64bit binaries, making 10.5 the minimum version. This has been tested # with xcode 3.1 (xcode31_2199_developerdvd.dmg). It contains the 10.5 SDK and a decent @@ -95,70 +88,7 @@ echo;echo #fi (ARCH=ppc CC=gcc-4.0 CFLAGS=$PPC_CFLAGS LDFLAGS=$PPC_LDFLAGS make -j$NCPU) || exit 1; -<<<<<<< HEAD -echo;echo - -echo "Creating .app bundle $DESTDIR/$APPBUNDLE" -if [ ! -d "$DESTDIR/$APPBUNDLE/Contents/MacOS/$BASEDIR" ]; then - mkdir -p "$DESTDIR/$APPBUNDLE/Contents/MacOS/$BASEDIR" || exit 1; -fi -if [ ! -d "$DESTDIR/$APPBUNDLE/Contents/Resources" ]; then - mkdir -p "$DESTDIR/$APPBUNDLE/Contents/Resources" -fi -cp $ICNS "$DESTDIR/$APPBUNDLE/Contents/Resources/smokinguns.icns" || exit 1; -echo $PKGINFO > "$DESTDIR/$APPBUNDLE/Contents/PkgInfo" -echo " - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - $BINARY - CFBundleGetInfoString - Smokin' Guns $SG_VERSION - CFBundleIconFile - smokinguns.icns - CFBundleIdentifier - net.smokin-guns.www - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - smokinguns - CFBundlePackageType - APPL - CFBundleShortVersionString - $SG_VERSION - CFBundleSignature - $PKGINFO - CFBundleVersion - $SG_VERSION - NSExtensions - - NSPrincipalClass - NSApplication - - - " > $DESTDIR/$APPBUNDLE/Contents/Info.plist - -# Make UB's from previous builds of x86, x86_64 and ppc binaries -lipo -create -o $DESTDIR/$APPBUNDLE/Contents/MacOS/$BINARY $BIN_OBJ -lipo -create -o $DESTDIR/$APPBUNDLE/Contents/MacOS/$DEDBIN $BIN_DEDOBJ - -cp $RENDER_OBJ $DESTDIR/$APPBUNDLE/Contents/MacOS/ -cp $BASE_OBJ $DESTDIR/$APPBUNDLE/Contents/MacOS/$BASEDIR/ -cp $MPACK_OBJ $DESTDIR/$APPBUNDLE/Contents/MacOS/$MPACKDIR/ -cp code/libs/macosx/*.dylib $DESTDIR/$APPBUNDLE/Contents/MacOS/ - -lipo build/release-darwin-ppc/smokinguns.ppc build/release-darwin-i386/smokinguns.i386 -create -output "$DESTDIR/$APPBUNDLE/Contents/MacOS/$BINARY" -lipo build/release-darwin-ppc/smokinguns_dedicated.ppc build/release-darwin-i386/smokinguns_dedicated.i386 -create -output "$DESTDIR/$APPBUNDLE/Contents/MacOS/$DEDBIN" -cp code/libs/macosx/*.dylib "$DESTDIR/$APPBUNDLE/Contents/MacOS/" -======= echo # use the following shell script to build a universal application bundle "./make-macosx-app.sh" release ->>>>>>> b7f5971... Another pass at the Mac OS X make scripts. diff --git a/make-macosx.sh b/make-macosx.sh index 6dd5df17..035b3998 100755 --- a/make-macosx.sh +++ b/make-macosx.sh @@ -38,12 +38,6 @@ if [ ! -f Makefile ]; then exit 1 fi -Q3_VERSION=`grep '^VERSION=' Makefile | sed -e 's/.*=\(.*\)/\1/'` - -# We only care if we're >= 10.4, not if we're specifically Tiger. -# "8" is the Darwin major kernel version. -TIGERHOST=`uname -r |perl -w -p -e 's/\A(\d+)\..*\Z/$1/; $_ = (($_ >= 8) ? "1" : "0");'` - # we want to use the oldest available SDK for max compatiblity. However 10.4 and older # can not build 64bit binaries, making 10.5 the minimum version. This has been tested # with xcode 3.1 (xcode31_2199_developerdvd.dmg). It contains the 10.5 SDK and a decent