Ver código fonte

App Bundling includes dynamic libraries (except X)

Thomas Buck 11 anos atrás
pai
commit
6316028ce4
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9
    0
      Makefile

+ 9
- 0
Makefile Ver arquivo

@@ -117,9 +117,18 @@ targets: $(TARGETS)
117 117
 bundle: release
118 118
 	mkdir -p bin/OpenRaider.app/Contents/MacOS
119 119
 	mkdir -p bin/OpenRaider.app/Contents/Resources
120
+	mkdir -p bin/OpenRaider.app/Contents/Frameworks
120 121
 	cp mac_dist/Info.plist bin/OpenRaider.app/Contents/Info.plist
121 122
 	cp mac_dist/openraider.icns bin/OpenRaider.app/Contents/Resources/openraider.icns
122 123
 	cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider
124
+	cp /opt/local/lib/libalut.0.1.0.dylib bin/OpenRaider.app/Contents/Frameworks/libalut.0.1.0.dylib
125
+	cp /opt/local/lib/libSDL_ttf-2.0.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL_ttf-2.0.0.dylib
126
+	cp /opt/local/lib/libz.1.dylib bin/OpenRaider.app/Contents/Frameworks/libz.1.dylib
127
+	cp /opt/local/lib/libSDL-1.2.0.dylib bin/OpenRaider.app/Contents/Frameworks/libSDL-1.2.0.dylib
128
+	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
129
+	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
130
+	install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/../Frameworks/libz.1.dylib bin/OpenRaider.app/Contents/MacOS/OpenRaider
131
+	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
123 132
 
124 133
 bundle-image: bundle
125 134
 	hdiutil create -size 32m -fs HFS+ -volname "OpenRaider" bin/tmp.dmg

Carregando…
Cancelar
Salvar