26 $(Q)cp $(TTD) temp_binary_dir/$(TTD)_b |
26 $(Q)cp $(TTD) temp_binary_dir/$(TTD)_b |
27 @echo '===> Joining the PPC and x86 binaries into one universal one' |
27 @echo '===> Joining the PPC and x86 binaries into one universal one' |
28 $(Q)lipo temp_binary_dir/$(TTD)_a temp_binary_dir/$(TTD)_b -create -output $(TTD) |
28 $(Q)lipo temp_binary_dir/$(TTD)_a temp_binary_dir/$(TTD)_b -create -output $(TTD) |
29 $(Q)rm -rf temp_binary_dir |
29 $(Q)rm -rf temp_binary_dir |
30 |
30 |
|
31 ifdef JAGUAR |
|
32 JAGUAR_POSTFIX := -jaguar |
|
33 endif |
|
34 |
31 # build the bundle. OSX wants to keep apps in bundles, so we will give it one |
35 # build the bundle. OSX wants to keep apps in bundles, so we will give it one |
32 # the good thing about bundles is that you can keep extra files in them, so we keep lng files and a data dir in it |
36 # the good thing about bundles is that you can keep extra files in them, so we keep lng files and a data dir in it |
33 |
37 |
34 $(BUILD_OSX_BUNDLE): $(TTD) $(FAT_BINARY) |
38 $(BUILD_OSX_BUNDLE): $(TTD) $(FAT_BINARY) |
35 @echo '===> Building application bundle' |
39 @echo '===> Building application bundle' |
46 $(Q)cp lang/*.lng "$(OSXAPP)"/Contents/Lang/ |
50 $(Q)cp lang/*.lng "$(OSXAPP)"/Contents/Lang/ |
47 $(Q)cp $(TTD) "$(OSXAPP)"/Contents/MacOS/$(TTD) |
51 $(Q)cp $(TTD) "$(OSXAPP)"/Contents/MacOS/$(TTD) |
48 |
52 |
49 # make the release disk image. Should only be used with releases and is a good and fast way to make sure to remember all the needed files |
53 # make the release disk image. Should only be used with releases and is a good and fast way to make sure to remember all the needed files |
50 release: all |
54 release: all |
51 $(Q)mkdir -p "OpenTTD $(RELEASE)" |
55 @echo '===> Building release disk image' |
52 $(Q)mkdir -p "OpenTTD $(RELEASE)"/docs |
56 $(Q)mkdir -p "OpenTTD $(REV)" |
53 $(Q)mkdir -p "OpenTTD $(RELEASE)"/scenario |
57 $(Q)mkdir -p "OpenTTD $(REV)/docs" |
54 $(Q)cp -R $(OSXAPP) "OpenTTD $(RELEASE)"/ |
58 $(Q)mkdir -p "OpenTTD $(REV)/scenario" |
55 $(Q)cp docs/OSX_install_instructions.txt "OpenTTD $(RELEASE)"/How\ to\ install\ (please\ read).txt |
59 $(Q)cp -R $(OSXAPP) "OpenTTD $(REV)/" |
56 $(Q)cp readme.txt "OpenTTD $(RELEASE)"/docs/ |
60 $(Q)cp docs/OSX_install_instructions.txt "OpenTTD $(REV)/How to install (please read).txt" |
57 $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(RELEASE)"/docs/readme\ if\ crashed\ on\ OSX.txt |
61 $(Q)cp docs/OSX_why_multiple_applications.txt "OpenTTD $(REV)/why a special Jaguar download.txt" |
58 $(Q)cp docs/console.txt "OpenTTD $(RELEASE)"/docs/ |
62 $(Q)cp readme.txt "OpenTTD $(REV)/docs/" |
59 $(Q)cp COPYING "OpenTTD $(RELEASE)"/docs/ |
63 $(Q)cp docs/console.txt "OpenTTD $(REV)/docs/" |
60 $(Q)cp changelog.txt "OpenTTD $(RELEASE)"/docs/ |
64 $(Q)cp COPYING "OpenTTD $(REV)/docs/" |
61 $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(RELEASE)"/docs/ |
65 $(Q)cp changelog.txt "OpenTTD $(REV)/docs/" |
62 $(Q)cp os/macosx/*.webloc "OpenTTD $(RELEASE)" |
66 $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(REV)/docs/" |
63 $(Q)cp known-bugs.txt "OpenTTD $(RELEASE)"/known-bugs.txt |
67 $(Q)cp os/macosx/*.webloc "OpenTTD $(REV)" |
64 $(Q)cp scenario/* "OpenTTD $(RELEASE)"/scenario/ |
68 $(Q)cp known-bugs.txt "OpenTTD $(REV)/known-bugs.txt" |
65 $(Q)/usr/bin/hdiutil create -ov -format UDZO -srcfolder "OpenTTD $(RELEASE)" openttd-"$(RELEASE)"-osx.dmg |
69 $(Q)cp scenario/* "OpenTTD $(REV)/scenario/" |
66 $(Q)rm -fr "OpenTTD $(RELEASE)" |
70 $(Q)/usr/bin/hdiutil create -ov -format UDZO -srcfolder "OpenTTD $(REV)" openttd-"$(REV)"-osx"$(JAGUAR_POSTFIX)".dmg |
|
71 $(Q)rm -fr "OpenTTD $(REV)" |
67 |
72 |
68 $(OSX): $(TTD) $(BUILD_OSX_BUNDLE) |
73 $(OSX): $(TTD) $(BUILD_OSX_BUNDLE) |
69 |
74 |
70 .PHONY: release $(BUILD_OSX_BUNDLE) $(FAT_BINARY) |
75 .PHONY: release $(BUILD_OSX_BUNDLE) $(FAT_BINARY) |