1 | #!/bin/bash |
1 | #!/bin/bash |
2 | |
2 | |
3 | # Convert a gtk2-perl program to a standalone OS X binary |
3 | # Convert a gtk2-perl program to a standalone OS X binary |
4 | |
4 | |
5 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
5 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
|
|
6 | |
|
|
7 | export MACOSX_DEPLOYMENT_TARGET=10.3 # maybe it helps |
6 | |
8 | |
7 | PERL=/opt/local |
9 | PERL=/opt/local |
8 | PERLLIB=/usr/lib/perl5 |
10 | PERLLIB=/usr/lib/perl5 |
9 | |
11 | |
10 | umask 022 |
12 | umask 022 |
11 | |
13 | |
12 | if false; then |
14 | if true; then |
13 | for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
15 | for mod in AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB; do |
14 | ( |
16 | ( |
15 | cd /root/src/$mod |
17 | cd /root/src/$mod |
|
|
18 | set -x |
|
|
19 | pwd |
|
|
20 | rsync -avPessh 10.0.0.1:src/$mod/. . --del |
16 | $PERL/bin/perl Makefile.PL </dev/null |
21 | $PERL/bin/perl Makefile.PL </dev/null |
17 | make clean |
22 | make clean |
18 | $PERL/bin/perl Makefile.PL </dev/null |
23 | $PERL/bin/perl Makefile.PL </dev/null |
19 | make install || exit |
24 | make install || exit |
20 | make clean |
25 | make clean |
21 | ) |
26 | ) || exit |
22 | done |
27 | done |
23 | fi |
28 | fi |
24 | |
29 | |
25 | if true; then |
30 | if true; then |
26 | |
31 | |
… | |
… | |
88 | |
93 | |
89 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
94 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
90 | |
95 | |
91 | cd /root/src/deliantra/Deliantra-Client |
96 | cd /root/src/deliantra/Deliantra-Client |
92 | |
97 | |
93 | #$PERL/bin/perl Makefile.PL |
98 | $PERL/bin/perl Makefile.PL |
94 | #make clean |
99 | make clean |
95 | #$PERL/bin/perl Makefile.PL |
100 | $PERL/bin/perl Makefile.PL |
96 | make install || exit |
101 | make install || exit |
97 | |
102 | |
98 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
103 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
99 | $PERL/bin/pp -C \ |
104 | $PERL/bin/pp -C \ |
100 | -z 9 \ |
105 | -z 9 \ |
… | |
… | |
148 | <key>CFBundleSignature</key> |
153 | <key>CFBundleSignature</key> |
149 | <string>????</string> |
154 | <string>????</string> |
150 | <key>LSHasLocalizedDisplayName</key> |
155 | <key>LSHasLocalizedDisplayName</key> |
151 | <false/> |
156 | <false/> |
152 | <key>LSMinimumSystemVersion</key> |
157 | <key>LSMinimumSystemVersion</key> |
153 | <string>10.5</string> |
158 | <string>10.3</string> |
154 | <key>NSAppleScriptEnabled</key> |
159 | <key>NSAppleScriptEnabled</key> |
155 | <false/> |
160 | <false/> |
156 | <key>NSHumanReadableCopyright</key> |
161 | <key>NSHumanReadableCopyright</key> |
157 | <string>Deliantra MORPG Client - Copyright 2008 The Deliantra Team</string> |
162 | <string>Deliantra MORPG Client - Copyright 2008 The Deliantra Team</string> |
158 | </dict> |
163 | </dict> |