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 |
|
|
8 | export MACOSX_DEPLOYMENT_TARGET=10.5 # nope |
6 | |
9 | |
7 | PERL=/opt/local |
10 | PERL=/opt/local |
8 | PERLLIB=/usr/lib/perl5 |
11 | PERLLIB=/usr/lib/perl5 |
9 | |
12 | |
10 | umask 022 |
13 | umask 022 |
11 | |
14 | |
12 | if false; then |
15 | if true; then |
13 | for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
16 | for mod in AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB; do |
14 | ( |
17 | ( |
15 | cd /root/src/$mod |
18 | cd /root/src/$mod |
|
|
19 | set -x |
|
|
20 | pwd |
|
|
21 | rsync -avPessh 10.0.0.1:src/$mod/. . --del |
16 | $PERL/bin/perl Makefile.PL </dev/null |
22 | $PERL/bin/perl Makefile.PL </dev/null |
17 | make clean |
23 | make clean |
18 | $PERL/bin/perl Makefile.PL </dev/null |
24 | $PERL/bin/perl Makefile.PL </dev/null |
19 | make install || exit |
25 | make install || exit |
20 | make clean |
26 | make clean |
21 | ) |
27 | ) || exit |
22 | done |
28 | done |
23 | fi |
29 | fi |
24 | |
30 | |
25 | if true; then |
31 | if true; then |
26 | |
32 | |
… | |
… | |
88 | |
94 | |
89 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
95 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
90 | |
96 | |
91 | cd /root/src/deliantra/Deliantra-Client |
97 | cd /root/src/deliantra/Deliantra-Client |
92 | |
98 | |
93 | #$PERL/bin/perl Makefile.PL |
99 | $PERL/bin/perl Makefile.PL |
94 | #make clean |
100 | make clean |
95 | #$PERL/bin/perl Makefile.PL |
101 | $PERL/bin/perl Makefile.PL |
96 | make install || exit |
102 | make install || exit |
97 | |
103 | |
98 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
104 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
99 | $PERL/bin/pp -C \ |
105 | $PERL/bin/pp -C \ |
100 | -z 9 \ |
106 | -z 9 \ |