|
@@ -115,58 +115,14 @@ auto: $(BUILD_SELECT)
|
115
|
115
|
targets: $(TARGETS)
|
116
|
116
|
|
117
|
117
|
bundle: release
|
118
|
|
- mkdir -p bin/OpenRaider.app/Contents/MacOS
|
119
|
|
- mkdir -p bin/OpenRaider.app/Contents/Resources/defaults
|
120
|
|
- mkdir -p bin/OpenRaider.app/Contents/Frameworks
|
121
|
|
- cp mac_dist/Info.plist bin/OpenRaider.app/Contents/Info.plist
|
122
|
|
- cp mac_dist/openraider.icns bin/OpenRaider.app/Contents/Resources/openraider.icns
|
123
|
|
- cp mac_dist/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider
|
124
|
|
- cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
125
|
|
- cp data/* bin/OpenRaider.app/Contents/Resources/defaults/
|
126
|
|
- cp /opt/local/lib/libalut.0.1.0.dylib bin/OpenRaider.app/Contents/Frameworks/libalut.0.1.0.dylib
|
127
|
|
- cp /opt/local/lib/libSDL_ttf-2.0.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
|
128
|
|
- cp /opt/local/lib/libz.1.dylib bin/OpenRaider.app/Contents/Frameworks/libz.1.dylib
|
129
|
|
- cp /opt/local/lib/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
|
130
|
|
- cp /opt/local/lib/libbz2.1.0.dylib bin/OpenRaider.app/Contents/Frameworks/libbz2.1.0.dylib
|
131
|
|
- cp /opt/local/lib/libfreetype.6.dylib bin/OpenRaider.app/Contents/Frameworks/libfreetype.6.dylib
|
132
|
|
- cp /opt/local/lib/libpng15.15.dylib bin/OpenRaider.app/Contents/Frameworks/libpng15.15.dylib
|
133
|
|
- # OpenRaider-bin
|
134
|
|
- install_name_tool -change /opt/local/lib/libalut.0.1.0.dylib @executable_path/../Frameworks/libalut.0.1.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
135
|
|
- install_name_tool -change /opt/local/lib/libSDL_ttf-2.0.0.dylib @executable_path/../Frameworks/libSDL_ttf-2.0.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
136
|
|
- install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
137
|
|
- install_name_tool -change /opt/local/lib/libSDL-1.2.0.dylib @executable_path/../Frameworks/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
138
|
|
- install_name_tool -change /opt/X11/lib/libXmu.6.dylib /usr/X11/lib/libXmu.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
139
|
|
- install_name_tool -change /opt/X11/lib/libXt.6.dylib /usr/X11/lib/libXt.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
140
|
|
- install_name_tool -change /opt/X11/lib/libSM.6.dylib /usr/X11/lib/libSM.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
141
|
|
- install_name_tool -change /opt/X11/lib/libICE.6.dylib /usr/X11/lib/libICE.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
142
|
|
- install_name_tool -change /opt/X11/lib/libXext.6.dylib /usr/X11/lib/libXext.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
143
|
|
- install_name_tool -change /opt/X11/lib/libX11.6.dylib /usr/X11/lib/libX11.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
144
|
|
- install_name_tool -change /opt/X11/lib/libXi.6.dylib /usr/X11/lib/libXi.6.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin
|
145
|
|
- # libSDL-1.2.0.dylib
|
146
|
|
- install_name_tool -change /opt/local/lib/libX11.6.dylib /usr/X11/lib/libX11.6.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
|
147
|
|
- install_name_tool -change /opt/local/lib/libXext.6.dylib /usr/X11/lib/libXext.6.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
|
148
|
|
- install_name_tool -change /opt/local/lib/libXrandr.2.dylib /usr/X11/lib/libXrandr.2.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
|
149
|
|
- install_name_tool -change /opt/local/lib/libXrender.1.dylib /usr/X11/lib/libXrender.1.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
|
150
|
|
- # libSDL_ttf-2.0.0.dylib
|
151
|
|
- install_name_tool -change /opt/local/lib/libSDL-1.2.0.dylib @executable_path/../Frameworks/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
|
152
|
|
- install_name_tool -change /opt/local/lib/libfreetype.6.dylib @executable_path/../Frameworks/libfreetype.6.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
|
153
|
|
- install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
|
154
|
|
- install_name_tool -change /opt/local/lib/libbz2.1.0.dylib @executable_path/../Frameworks/libbz2.1.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
|
155
|
|
- # libfreetype.6.dylib
|
156
|
|
- install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/Frameworks/libfreetype.6.dylib
|
157
|
|
- install_name_tool -change /opt/local/lib/libbz2.1.0.dylib @executable_path/../Frameworks/libbz2.1.0.dylib bin/OpenRaider.app/Contents/Frameworks/libfreetype.6.dylib
|
158
|
|
- install_name_tool -change /opt/local/lib/libpng15.15.dylib @executable_path/../Frameworks/libpng15.15.dylib bin/OpenRaider.app/Contents/Frameworks/libfreetype.6.dylib
|
159
|
|
- # libpng15.15.dylib
|
160
|
|
- install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/Frameworks/libpng15.15.dylib
|
|
118
|
+ mac_dist/bundle.sh
|
|
119
|
+ mac_dist/frameworks.sh
|
161
|
120
|
|
162
|
121
|
bundle-image: bundle
|
163
|
|
- hdiutil create -size 32m -fs HFS+ -volname "OpenRaider" bin/tmp.dmg
|
164
|
|
- hdiutil attach bin/tmp.dmg
|
165
|
|
- cp -r bin/OpenRaider.app /Volumes/OpenRaider/OpenRaider.app
|
166
|
|
- osascript -e 'tell application "Finder" to make alias file to POSIX file "/Applications" at POSIX file "/Volumes/OpenRaider/"'
|
167
|
|
- hdiutil detach /Volumes/OpenRaider
|
168
|
|
- hdiutil convert bin/tmp.dmg -format UDZO -o bin/OpenRaider.dmg
|
169
|
|
- rm -rf bin/tmp.dmg
|
|
122
|
+ mac_dist/image.sh
|
|
123
|
+
|
|
124
|
+bundle-archive: bundle
|
|
125
|
+ mac_dist/archive.sh
|
170
|
126
|
|
171
|
127
|
all: debug release prof
|
172
|
128
|
|
|
@@ -269,6 +225,7 @@ clean: clean-small clean-dep
|
269
|
225
|
clean-small: clean-emacs clean-build clean-test clean-obj
|
270
|
226
|
@-rm -rf bin/OpenRaider.app
|
271
|
227
|
@-rm -rf bin/OpenRaider.dmg
|
|
228
|
+ @-rm -rf bin/OpenRaider.zip
|
272
|
229
|
|
273
|
230
|
clean-dep:
|
274
|
231
|
@-echo "Cleaning dependencies "
|