Latest revision as of post is r339 on SourceForge.
1.) Install XCode 2.5/3.1+
2.) Install MacPorts 1.7+
3.) Open /Applications/Utilities/Terminal.app
4.)
- Code: Select all
sudo port install libsdl-devel
svn co https://smokinguns.svn.sourceforge.net/svnroot/smokinguns/branches/1.1/ sg11-engine
export CC="gcc -m32"
export CFLAGS="-m32 -march i386 -pipe"
export CXXFLAGS=$CFLAGS
export LDFLAGS=$CFLAGS
make
6.)
- Code: Select all
#!/bin/bash
APPBUNDLE="Smokin' Guns.app"
BINARY=smokinguns.i386
DEDBIN=smokinguns_dedicated.i386
PKGINFO=APPLSG
ICNS=misc/smokinguns.icns
DESTDIR=build/release-darwin-i386
BASEDIR=smokinguns
cd `dirname $0`
if [ ! -f Makefile ]; then
echo "This script must be run from the smokinguns build directory"
exit 1
fi
SG_VERSION=`grep '^VERSION=' Makefile | sed -e 's/.*=\(.*\)/\1/'`
if [ ! -d $DESTDIR ]; then
mkdir -p $DESTDIR
fi
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 "
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE plist
PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"
\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>$BINARY</string>
<key>CFBundleGetInfoString</key>
<string>Smokin' Guns $SG_VERSION</string>
<key>CFBundleIconFile</key>
<string>smokinguns.icns</string>
<key>CFBundleIdentifier</key>
<string>net.smokin-guns.www</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>smokinguns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$SG_VERSION</string>
<key>CFBundleSignature</key>
<string>$PKGINFO</string>
<key>CFBundleVersion</key>
<string>$SG_VERSION</string>
<key>NSExtensions</key>
<dict/>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
" > "$DESTDIR/$APPBUNDLE/Contents/Info.plist"
cp code/libs/macosx/*.dylib "$DESTDIR/$APPBUNDLE/Contents/MacOS/"
cp $DESTDIR/$BINARY "$DESTDIR/$APPBUNDLE/Contents/MacOS/"
cp $DESTDIR/$DEDBIN "$DESTDIR/$APPBUNDLE/Contents/MacOS/"
7.) Locate your sg pak0.pk3 and *.cfg files from sg-generic-1.0 and place inside Smokin' Guns.app bundle in Contents/MacOS/smokinguns
8.) Pray Clint Eastwood isn't waiting around the corner and that it launched.
Notes:
[4] make-macosx-ub.sh is now only used for creating the bundle. LCC build process will probably fail on Snow Leopard (10.6) hosts but since we already had the VM files built, oh well. We'll track ioq3 to see if it's fixed there yet.
[6] This is a replacement for make-macosx-ub.sh which can be ran from terminal by simply copying and pasting the whole block.
Other:
You may encounter mouse acceleration issues due to the "acceleration curve" of Mac OS X versus UNIX/Windows. It was fixed a while ago, though it seems to have stopped working again in 100 revisions.
You can edit the default.cfg file inside the Smokin' Guns.app bundle (Contents/MacOS/smokinguns) and append:
seta cl_mouseAccel "0" (Change from 0 to 1 to see if there's a difference)
If you've previously ran Smokin' Guns, remove the ~/Library/Application Support/SmokinGuns folder before launching again. All persistent settings will not be applied to local profiles. Something like changing mouse sensitivity would generally be a system-wide setting, so you're free to modify the above file. Also, the q3config.cfg inside "smokinguns" folder is redundant and can be removed if you want.