]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
initial OS X app building stuff. May be broken.
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 15 Jan 2009 06:35:13 +0000 (06:35 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 15 Jan 2009 06:35:13 +0000 (06:35 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@176 61c419a2-8eb2-4b30-bcec-8cead039b335

Makefile
setup/data/osx/NetRadiant.app/Contents/Info.plist [new file with mode: 0644]
setup/data/osx/NetRadiant.app/Contents/MacOS/netradiant.sh [new file with mode: 0755]
setup/data/osx/NetRadiant.app/Contents/PkgInfo [new file with mode: 0644]
setup/data/osx/NetRadiant.app/Contents/Resources/English.lproj/InfoPlist.strings [new file with mode: 0755]
setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns [new file with mode: 0644]

index 334aa1090df52c061a4e84255726272fa2c79226..0319a92c9cb1b05621fb7c0f48688fa0afff754c 100644 (file)
--- 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 (file)
index 0000000..81e377d
--- /dev/null
@@ -0,0 +1,18 @@
+<?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>netradiant.sh</string>
+       <key>CFBundleIconFile</key>
+       <string>NetRadiant</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>1.5.0</string>
+</dict>
+</plist>
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 (executable)
index 0000000..4cb8749
--- /dev/null
@@ -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 (file)
index 0000000..bd04210
--- /dev/null
@@ -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 (executable)
index 0000000..4a182e5
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 (file)
index 0000000..07cc4f3
Binary files /dev/null and b/setup/data/osx/NetRadiant.app/Contents/Resources/NetRadiant.icns differ