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.8 by root, Mon Sep 29 03:05:00 2008 UTC vs.
Revision 1.11 by root, Wed Jan 14 23:55:39 2009 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 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
8export MACOSX_DEPLOYMENT_TARGET=10.5 # nope
9
10cvs update
6 11
7PERL=/opt/local 12PERL=/opt/local
8PERLLIB=/usr/lib/perl5 13PERLLIB=/usr/lib/perl5
9 14
10umask 022 15umask 022
11 16
12if true; then 17if true; then
13 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
14 ( 19 (
20 mkdir -p /root/src/$mod || exit 77
15 cd /root/src/$mod 21 cd /root/src/$mod
22 set -x
23 pwd
16 rsync -avzPessh 10.0.0.1:/root/src/$mod . --del 24 rsync -avPessh 10.0.0.1:src/$mod/. . --del
17 $PERL/bin/perl Makefile.PL </dev/null 25 $PERL/bin/perl Makefile.PL </dev/null
18 make clean 26 make clean
19 $PERL/bin/perl Makefile.PL </dev/null 27 $PERL/bin/perl Makefile.PL </dev/null
20 make install || exit 28 make install || exit
21 make clean 29 make clean
22 ) 30 ) || exit
23 done 31 done
24fi 32fi
25 33
26if true; then 34if true; then
27 35
89 97
90trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 98trap "rm -f addlist pango.rc pango.modules fonts.conf" 0
91 99
92cd /root/src/deliantra/Deliantra-Client 100cd /root/src/deliantra/Deliantra-Client
93 101
94#$PERL/bin/perl Makefile.PL 102$PERL/bin/perl Makefile.PL
95#make clean 103make clean
96#$PERL/bin/perl Makefile.PL 104$PERL/bin/perl Makefile.PL
97make install || exit 105make install || exit
98 106
99DYLD_LIBRARY_PATH=/opt/local/lib \ 107DYLD_LIBRARY_PATH=/opt/local/lib \
100$PERL/bin/pp -C \ 108$PERL/bin/pp -C \
101 -z 9 \ 109 -z 9 \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines