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 | |
|
|
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 |
|
|
9 | |
|
|
10 | cvs update |
4 | |
11 | |
5 | PERL=/opt/local |
12 | PERL=/opt/local |
6 | PERLLIB=/usr/lib/perl5 |
13 | PERLLIB=/usr/lib/perl5 |
7 | PANGO=1.6.0 |
|
|
8 | |
14 | |
9 | umask 022 |
15 | umask 022 |
10 | |
16 | |
11 | if false; then |
17 | if true; then |
12 | for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do |
18 | for mod in AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB Guard; do |
13 | ( |
19 | ( |
|
|
20 | mkdir -p /root/src/$mod || exit 77 |
14 | cd /root/src/$mod |
21 | cd /root/src/$mod |
|
|
22 | set -x |
|
|
23 | pwd |
|
|
24 | rsync -avPessh 10.0.0.1:src/$mod/. . --del |
15 | $PERL/bin/perl Makefile.PL </dev/null |
25 | $PERL/bin/perl Makefile.PL </dev/null |
16 | make clean |
26 | make clean |
17 | $PERL/bin/perl Makefile.PL </dev/null |
27 | $PERL/bin/perl Makefile.PL </dev/null |
18 | make install || exit |
28 | make install || exit |
19 | make clean |
29 | make clean |
20 | ) |
30 | ) || exit |
21 | done |
31 | done |
22 | fi |
32 | fi |
23 | |
33 | |
24 | if true; then |
34 | if true; then |
25 | |
35 | |
… | |
… | |
87 | |
97 | |
88 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
98 | trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 |
89 | |
99 | |
90 | cd /root/src/deliantra/Deliantra-Client |
100 | cd /root/src/deliantra/Deliantra-Client |
91 | |
101 | |
92 | #$PERL/bin/perl Makefile.PL |
102 | $PERL/bin/perl Makefile.PL |
93 | #make clean |
103 | make clean |
94 | #$PERL/bin/perl Makefile.PL |
104 | $PERL/bin/perl Makefile.PL |
95 | make install || exit |
105 | make install || exit |
96 | |
106 | |
97 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
107 | DYLD_LIBRARY_PATH=/opt/local/lib \ |
98 | $PERL/bin/pp -C \ |
108 | $PERL/bin/pp -C \ |
99 | -z 9 \ |
109 | -z 9 \ |
… | |
… | |
166 | cat >dmg/README.txt <<EOF |
176 | cat >dmg/README.txt <<EOF |
167 | Hello! |
177 | Hello! |
168 | |
178 | |
169 | This disk image contains the Deliantra MORPG game client. |
179 | This disk image contains the Deliantra MORPG game client. |
170 | |
180 | |
|
|
181 | The client has been compiled for Intel systems only. |
|
|
182 | |
|
|
183 | The client uses a lot of right mouse button click pop-up menus, to emulate |
|
|
184 | a right-click with a mouse that has only one button, use ctrl-click. |
|
|
185 | |
171 | To play it, simply double-click it, then select a good graphics resolution |
186 | To play it, simply double-click it, then select a good graphics resolution |
172 | in the Setup => Graphics tab and then go to Setup => Login, enter a nickname |
187 | in the Setup => Graphics tab and then go to Setup => Login, enter a nickname |
173 | (no spaces, only ASCII letters supported) and a password, then hit Login. |
188 | (no spaces, only ASCII letters supported) and a password, then hit Login. |
174 | |
189 | |
175 | You can also install the client application by dragging it onto your |
190 | You can also install the client application by dragging it onto your |
… | |
… | |
207 | EOF |
222 | EOF |
208 | chmod 755 dmg/"Reset Configuration" |
223 | chmod 755 dmg/"Reset Configuration" |
209 | |
224 | |
210 | # now, the last third, putting all this into a dmg |
225 | # now, the last third, putting all this into a dmg |
211 | |
226 | |
|
|
227 | DMG="Deliantra_MORPG_Client-$VER".dmg |
|
|
228 | |
212 | hdiutil create -srcfolder dmg -volname "Deliantra MORPG Client" -ov -format UDZO ~user/"Deliantra_MORPG_Client-$VER".dmg |
229 | hdiutil create -srcfolder dmg -volname "Deliantra MORPG Client" -ov -format UDZO ~user/"$DMG" |
213 | ls -l ~user/"Deliantra_MORPG_Client-$VER".dmg |
230 | ls -l ~user/"$DMG" |
214 | rm -rf dmg |
231 | rm -rf dmg |
215 | |
232 | |
|
|
233 | chmod 644 ~user/$DMG |
|
|
234 | echo http://data.plan9.de/"$DMG" |
|
|
235 | rsync -avPessh ~user/"$DMG" ruth:/var/www/data.plan9.de/. |
216 | |
236 | |
217 | |
237 | |
|
|
238 | |