From: divverent Date: Thu, 15 Jan 2009 06:35:13 +0000 (+0000) Subject: initial OS X app building stuff. May be broken. X-Git-Tag: svn-r421~244 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1136218cfee010aa88d32296e6357a78ddbf8fd;p=xonotic%2Fnetradiant.git initial OS X app building stuff. May be broken. git-svn-id: svn://svn.icculus.org/netradiant/trunk@176 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/Makefile b/Makefile index 334aa109..0319a92c 100644 --- a/Makefile +++ b/Makefile @@ -191,7 +191,10 @@ ifeq ($(OS),Darwin) # workaround: we have no "ldd" for OS X, so... LDD = -#$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch) + INSTALLDIR_BASE := $(INSTALLDIR) + INSTALLDIR := $(INSTALLDIR_BASE)/NetRadiant.app/Contents/MacOS/install +endif + else $(error Unsupported build OS: $(OS)) @@ -935,6 +938,7 @@ $(INSTALLDIR)/heretic2/h2data.$(EXE): \ install-data: binaries $(MKDIR) $(INSTALLDIR)/games $(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune + [ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/ set -ex; \ for GAME in games/*; do \ if [ -d "$$GAME/tools" ]; then \ diff --git a/setup/data/osx/NetRadiant.app/Contents/Info.plist b/setup/data/osx/NetRadiant.app/Contents/Info.plist new file mode 100644 index 00000000..81e377d1 --- /dev/null +++ b/setup/data/osx/NetRadiant.app/Contents/Info.plist @@ -0,0 +1,18 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + netradiant.sh + CFBundleIconFile + NetRadiant + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1.5.0 + + diff --git a/setup/data/osx/NetRadiant.app/Contents/MacOS/netradiant.sh b/setup/data/osx/NetRadiant.app/Contents/MacOS/netradiant.sh new file mode 100755 index 00000000..4cb8749f --- /dev/null +++ b/setup/data/osx/NetRadiant.app/Contents/MacOS/netradiant.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +MY_DIRECTORY="${0%/*}" # cut off the script name +MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off MacOS +MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off Contents + +#export DYLD_LIBRARY_PATH="$MY_DIRECTORY/Contents/MacOS" + +cd "$MY_DIRECTORY/Contents/MacOS/NetRadiant/install" +exec /usr/bin/open-x11 ./radiant.ppc diff --git a/setup/data/osx/NetRadiant.app/Contents/PkgInfo b/setup/data/osx/NetRadiant.app/Contents/PkgInfo new file mode 100644 index 00000000..bd04210f --- /dev/null +++ b/setup/data/osx/NetRadiant.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/setup/data/osx/NetRadiant.app/Contents/Resources/English.lproj/InfoPlist.strings b/setup/data/osx/NetRadiant.app/Contents/Resources/English.lproj/InfoPlist.strings new file mode 100755 index 00000000..4a182e50 Binary files /dev/null and b/setup/data/osx/NetRadiant.app/Contents/Resources/English.lproj/InfoPlist.strings differ diff --git a/setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns b/setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns new file mode 100644 index 00000000..07cc4f32 Binary files /dev/null and b/setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns differ