1 |
root |
1.1 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
# Convert a gtk2-perl program to a standalone OS X binary |
4 |
|
|
|
5 |
|
|
PERL=/opt/local |
6 |
|
|
PERLLIB=/usr/lib/perl5 |
7 |
|
|
PANGO=1.6.0 |
8 |
|
|
|
9 |
|
|
if false; then |
10 |
|
|
for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
11 |
|
|
( |
12 |
|
|
cd /root/src/$mod |
13 |
|
|
$PERL/bin/perl Makefile.PL </dev/null |
14 |
|
|
make clean |
15 |
|
|
$PERL/bin/perl Makefile.PL </dev/null |
16 |
|
|
make install || exit |
17 |
|
|
make clean |
18 |
|
|
) |
19 |
|
|
done |
20 |
|
|
fi |
21 |
|
|
|
22 |
|
|
( |
23 |
|
|
perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST |
24 |
|
|
|
25 |
|
|
echo "docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst" |
26 |
|
|
|
27 |
|
|
#pangoversion;root/pangoversion |
28 |
|
|
#/opt/local/lib/libglib-2.0.so.0;shlib/darwin-2level/libglib-2.0.dylib |
29 |
|
|
#/lib/libgcc_s.so.1;shlib/darwin-2level/libgcc_s.so.1 |
30 |
|
|
#/opt/local/lib/libstdc++.so.6;shlib/darwin-2level/libstdc++.so.6 |
31 |
|
|
#/opt/local/lib/libaudio.so.2;shlib/darwin-2level/libaudio.so.2 |
32 |
|
|
|
33 |
|
|
( echo "[Pango]"; echo "ModuleFiles = pango.modules" ) > pango.rc |
34 |
|
|
echo "pango.rc;root/pango.rc" |
35 |
|
|
|
36 |
|
|
( |
37 |
|
|
grep ^/opt /opt/local/etc/pango/pango.modules | while read so rest; do |
38 |
|
|
base=$(basename "$so") |
39 |
|
|
echo "$so;root/$base" |
40 |
|
|
echo "$base $rest" >&5 |
41 |
|
|
done |
42 |
|
|
) 5>pango.modules |
43 |
|
|
echo "pango.modules;root/pango.modules" |
44 |
|
|
|
45 |
|
|
for lib in \ |
46 |
|
|
db-4.6 \ |
47 |
|
|
glib-2.0.0 gobject-2.0.0 gmodule-2.0.0 \ |
48 |
|
|
pango-1.0.0 pangoft2-1.0.0 \ |
49 |
|
|
SDL-1.2.0 SDL_mixer-1.2.0 SDL_image-1.2.0 \ |
50 |
|
|
vorbisfile vorbis.0 ogg.0 \ |
51 |
|
|
png12 jpeg.62 z.1 \ |
52 |
|
|
fontconfig.1 expat.1 freetype.6 intl.8 iconv.2; |
53 |
|
|
do |
54 |
|
|
echo "/opt/local/lib/lib$lib.dylib;shlib/darwin-2level/lib$lib.dylib" |
55 |
|
|
done |
56 |
|
|
|
57 |
|
|
cat >>fonts.conf <<EOF |
58 |
|
|
<?xml version="1.0"?> |
59 |
|
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
60 |
|
|
<fontconfig> |
61 |
|
|
|
62 |
|
|
<match target="pattern"> <test qual="any" name="family"> <string>mono</string> </test> <edit name="family" mode="assign"> <string>monospace</string> </edit> </match> |
63 |
|
|
|
64 |
|
|
<match target="pattern"> <test qual="any" name="family"> <string>sans serif</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match> |
65 |
|
|
|
66 |
|
|
<match target="pattern"> <test qual="any" name="family"> <string>sans</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match> |
67 |
|
|
|
68 |
|
|
<cachedir>fontconfig-cache</cachedir> |
69 |
|
|
|
70 |
|
|
<config> |
71 |
|
|
<blank> |
72 |
|
|
<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> |
73 |
|
|
</blank> |
74 |
|
|
</config> |
75 |
|
|
|
76 |
|
|
</fontconfig> |
77 |
|
|
EOF |
78 |
|
|
echo "fonts.conf;root/fonts.conf" |
79 |
|
|
|
80 |
|
|
) >addlist |
81 |
|
|
|
82 |
|
|
#cat pango.modules;exit |
83 |
|
|
|
84 |
|
|
trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
85 |
|
|
|
86 |
|
|
cd /root/src/deliantra/Deliantra-Client |
87 |
|
|
|
88 |
|
|
#$PERL/bin/perl Makefile.PL |
89 |
|
|
#make clean |
90 |
|
|
#$PERL/bin/perl Makefile.PL |
91 |
|
|
make install || exit |
92 |
|
|
|
93 |
|
|
DYLD_LIBRARY_PATH=/opt/local/lib \ |
94 |
|
|
$PERL/bin/pp -C \ |
95 |
|
|
-M AnyEvent::Impl::EV \ |
96 |
|
|
-M attributes \ |
97 |
|
|
-a "blib/arch/auto/Deliantra/Client/Client.bundle;lib/auto/Deliantra/Client/Client.bundle" \ |
98 |
|
|
-o deliantra-macosx-10.5.bin -A addlist bin/deliantra || exit |
99 |
|
|
|
100 |
|
|
|