Initial Apple packaging. Needs Gtk / Pango crap.

This commit is contained in:
jdolan 2013-06-02 22:12:42 -04:00
parent 876c1438c2
commit c72536f4b3
10 changed files with 79 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,3 +1,4 @@
/apple/target/*
/install/q3map2
/install/radiant.bin
/.sconsign.dblite
@ -6,3 +7,4 @@
*.pyc
*.so
.settings
.DS_Store

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>CFBundleDisplayName</key>
<string>GtkRadiant</string>
<key>CFBundleExecutable</key>
<string>radiant.bin</string>
<key>CFBundleIconFile</key>
<string>radiant.icns</string>
<key>CFBundleIdentifier</key>
<string>org.icculus.gtkradiant</string>
<key>CFBundleName</key>
<string>GtkRadiant</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.6.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.6.4</string>
<key>LSMinimumSystemVersion</key>
<string>10.6</string>
</dict>
</plist>

Binary file not shown.

View file

49
apple/Makefile Normal file
View file

@ -0,0 +1,49 @@
# Makefile for GtkRadiant, requires http://macdylibbundler.sourceforge.net/
INSTALL = ../install
TARGET = target
GTKRADIANT = $(TARGET)/GtkRadiant.app
LIBRARIES = $(GTKRADIANT)/Contents/lib
BINARIES = $(GTKRADIANT)/Contents/MacOS
RESOURCES = $(GTKRADIANT)/Contents/Resources
VERSION = 1.6.4
DMG = $(TARGET)/GtkRadiant-$(VERSION).dmg
VOLUME_NAME = "GtkRadiant $(VERSION)"
all: install
pre-install:
install -d $(TARGET)
cp -r GtkRadiant.app $(TARGET)
find $(TARGET) -name .turd -delete
install: pre-install
install $(INSTALL)/radiant.bin $(BINARIES)/radiant.bin
install $(INSTALL)/q3map2 $(BINARIES)/q3map2
install $(INSTALL)/q3map2_urt $(BINARIES)/q3map2_urt
install $(INSTALL)/q3data $(BINARIES)/q3data
install $(INSTALL)/modules/*.so $(BINARIES)/modules
install $(INSTALL)/bitmaps/*.* $(RESOURCES)/bitmaps
install $(INSTALL)/modules/bitmaps/*.* $(RESOURCES)/modules/bitmaps
@for i in $(INSTALL)/installs/*; do \
if [ -d $$i/.svn ]; then \
svn export --force $$i $(RESOURCES)/installs/`basename $$i` ; \
else \
cp -r $$i $(RESOURCES)/installs ; \
fi \
done
bundle:
dylibbundler -b \
`find $(BINARIES) -type f | xargs -I {} echo -x {}` \
-d $(LIBRARIES) -of -p @executable_path/../lib
image:
ln -f -s /Applications $(TARGET)/Applications
hdiutil create $(DMG) -srcfolder $(TARGET) -volname $(VOLUME_NAME)
rm $(TARGET)/Applications
clean:
rm -rf $(TARGET)/*