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 | #port install libsdl libsdl_mixer libsdl_image libvorbis libpng jpeg pango db46 libogg p5-libwww-perl p5-yaml |
5 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
6 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
|
|
7 | # ln -s db46/db.h /opt/local/include |
|
|
8 | # ln -s db46/libdb.dylib /opt/local/lib |
|
|
9 | # /opt/local/bin/cpan Pod::POM |
|
|
10 | |
|
|
11 | #export MACOSX_DEPLOYMENT_TARGET=10.3 # maybe it helps |
|
|
12 | #export MACOSX_DEPLOYMENT_TARGET=10.5 # nope |
|
|
13 | |
|
|
14 | cvs update |
6 | |
15 | |
7 | PERL=/opt/local |
16 | PERL=/opt/local |
8 | PERLLIB=/usr/lib/perl5 |
17 | PERLLIB=/usr/lib/perl5 |
9 | |
18 | |
10 | umask 022 |
19 | umask 022 |
11 | |
20 | |
12 | if true; then |
21 | if true; then |
13 | for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
22 | for mod in common-sense AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB Guard; do |
14 | ( |
23 | ( |
|
|
24 | mkdir -p /root/src/$mod || exit 77 |
15 | cd /root/src/$mod |
25 | cd /root/src/$mod |
|
|
26 | set -x |
|
|
27 | pwd |
16 | rsync -avzPessh 10.0.0.1:/root/src/$mod . --del |
28 | rsync -avPessh 10.0.0.1:src/$mod/. . --del |
17 | $PERL/bin/perl Makefile.PL </dev/null |
29 | $PERL/bin/perl Makefile.PL </dev/null |
18 | make clean |
30 | make clean |
19 | $PERL/bin/perl Makefile.PL </dev/null |
31 | $PERL/bin/perl Makefile.PL </dev/null |
20 | make install || exit |
32 | make install || exit |
21 | make clean |
33 | make clean |
22 | ) |
34 | ) || exit |
23 | done |
35 | done |
24 | fi |
36 | fi |
25 | |
37 | |
26 | if true; then |
38 | if true; then |
27 | |
39 | |
… | |
… | |
58 | fontconfig.1 expat.1 freetype.6 intl.8 iconv.2; |
70 | fontconfig.1 expat.1 freetype.6 intl.8 iconv.2; |
59 | do |
71 | do |
60 | echo "/opt/local/lib/lib$lib.dylib;shlib/darwin-2level/lib$lib.dylib" |
72 | echo "/opt/local/lib/lib$lib.dylib;shlib/darwin-2level/lib$lib.dylib" |
61 | done |
73 | done |
62 | |
74 | |
63 | cat >>fonts.conf <<EOF |
|
|
64 | <?xml version="1.0"?> |
|
|
65 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
|
|
66 | <fontconfig> |
|
|
67 | |
|
|
68 | <match target="pattern"> <test qual="any" name="family"> <string>mono</string> </test> <edit name="family" mode="assign"> <string>monospace</string> </edit> </match> |
|
|
69 | |
|
|
70 | <match target="pattern"> <test qual="any" name="family"> <string>sans serif</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match> |
|
|
71 | |
|
|
72 | <match target="pattern"> <test qual="any" name="family"> <string>sans</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match> |
|
|
73 | |
|
|
74 | <cachedir>fontconfig-cache</cachedir> |
|
|
75 | |
|
|
76 | <config> |
|
|
77 | <blank> |
|
|
78 | <int>0x0020</int><int>0x00A0</int><int>0x00AD</int><int>0x034F</int><int>0x0600</int><int>0x0601</int><int>0x0602</int><int>0x0603</int><int>0x06DD</int><int>0x070F</int><int>0x115F</int><int>0x1160</int><int>0x1680</int><int>0x17B4</int><int>0x17B5</int><int>0x180E</int><int>0x2000</int><int>0x2001</int><int>0x2002</int><int>0x2003</int><int>0x2004</int><int>0x2005</int><int>0x2006</int><int>0x2007</int><int>0x2008</int><int>0x2009</int><int>0x200A</int><int>0x200B</int><int>0x200C</int><int>0x200D</int><int>0x200E</int><int>0x200F</int><int>0x2028</int><int>0x2029</int><int>0x202A</int><int>0x202B</int><int>0x202C</int><int>0x202D</int><int>0x202E</int><int>0x202F</int><int>0x205F</int><int>0x2060</int><int>0x2061</int><int>0x2062</int><int>0x2063</int><int>0x206A</int><int>0x206B</int><int>0x206C</int><int>0x206D</int><int>0x206E</int><int>0x206F</int><int>0x2800</int><int>0x3000</int><int>0x3164</int><int>0xFEFF</int><int>0xFFA0</int><int>0xFFF9</int><int>0xFFFA</int><int>0xFFFB</int> |
|
|
79 | </blank> |
|
|
80 | </config> |
|
|
81 | |
|
|
82 | </fontconfig> |
|
|
83 | EOF |
|
|
84 | echo "fonts.conf;root/fonts.conf" |
|
|
85 | |
|
|
86 | ) >addlist |
75 | ) >addlist |
87 | |
76 | |
88 | #cat pango.modules;exit |
77 | #cat pango.modules;exit |
89 | |
78 | |
90 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
79 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
91 | |
80 | |
92 | cd /root/src/deliantra/Deliantra-Client |
81 | cd /root/src/deliantra/Deliantra-Client |
93 | |
82 | |
94 | #$PERL/bin/perl Makefile.PL |
83 | $PERL/bin/perl Makefile.PL |
95 | #make clean |
84 | make clean |
96 | #$PERL/bin/perl Makefile.PL |
85 | $PERL/bin/perl Makefile.PL |
97 | make install || exit |
86 | make install || exit |
98 | |
87 | |
99 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
88 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
100 | $PERL/bin/pp -C \ |
89 | $PERL/bin/pp -C \ |
101 | -z 9 \ |
90 | -z 9 \ |
… | |
… | |
153 | <key>LSMinimumSystemVersion</key> |
142 | <key>LSMinimumSystemVersion</key> |
154 | <string>10.5</string> |
143 | <string>10.5</string> |
155 | <key>NSAppleScriptEnabled</key> |
144 | <key>NSAppleScriptEnabled</key> |
156 | <false/> |
145 | <false/> |
157 | <key>NSHumanReadableCopyright</key> |
146 | <key>NSHumanReadableCopyright</key> |
158 | <string>Deliantra MORPG Client - Copyright 2008 The Deliantra Team</string> |
147 | <string>Deliantra MORPG Client - Copyright 2008,2009 The Deliantra Team</string> |
159 | </dict> |
148 | </dict> |
160 | </plist> |
149 | </plist> |
161 | EOF |
150 | EOF |
162 | |
151 | |
163 | rm -rf dmg |
152 | rm -rf dmg |