ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/makebin.osx
(Generate patch)

Comparing deliantra/Deliantra-Client/makebin.osx (file contents):
Revision 1.3 by root, Wed Aug 20 18:26:03 2008 UTC vs.
Revision 1.10 by root, Fri Dec 5 14:49:09 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines