ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/makebin.linux
Revision: 1.13
Committed: Sun Mar 23 19:42:44 2008 UTC (16 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-0_9968, rel-0_9967, rel-0_9966
Changes since 1.12: +9 -5 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/bash
2
3 # Convert a gtk2-perl program to a standalone linux binary
4
5 PERL=/usr
6 PERLLIB=/usr/lib/perl5/
7 PANGO=1.5.0
8 #PERL=/opt/perl
9 #PERLLIB=/opt/perl/lib/perl5/
10 #PANGO=1.6.0
11
12 for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do
13 (
14 cd /root/src/$mod
15 $PERL/bin/perl Makefile.PL </dev/null
16 make clean
17 $PERL/bin/perl Makefile.PL </dev/null
18 make install || exit
19 make clean
20 )
21 done
22
23 (
24 # patch braindamaged pango
25 perl -pe 's{/u(?=sr/lib(32)?/pango)}{/\x00}g; s{\Q'$PANGO'\E\x00}{y.t.u\x00}g' </usr/lib/libpango-1.0.so.0 >pango-1.0.so.0
26 printf "%s" "$PANGO" >pangoversion
27 cat <<EOF
28 pangoversion;root/pangoversion
29 pango-1.0.so.0;shlib/i486-linux-gnu-thread-multi/libpango-1.0.so.0
30 /usr/lib/libglib-2.0.so.0;shlib/i486-linux-gnu-thread-multi/libglib-2.0.so.0
31 /usr/lib/libstdc++.so.6;shlib/i486-linux-gnu-thread-multi/libstdc++.so.6
32 /usr/lib/libaudio.so.2;shlib/i486-linux-gnu-thread-multi/libaudio.so.2
33 /lib/libgcc_s.so.1;shlib/i486-linux-gnu-thread-multi/libgcc_s.so.1
34 /usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO
35 docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst
36 EOF
37
38 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST
39
40 ) >addlist
41
42 trap "rm addlist pangoversion pango-1.0.so.0" 0
43
44 $PERL/bin/perl Makefile.PL
45 make clean
46 $PERL/bin/perl Makefile.PL
47 make install || exit
48
49 wait
50
51 LD_LIBRARY_PATH=/lib:/usr/lib \
52 $PERL/bin/pp -C -I /root/src/Deliantra \
53 -M AnyEvent::Impl::EV \
54 -a "blib/arch/auto/Deliantra/Client/Client.so;lib/auto/Deliantra/Client/Client.so" \
55 -l db-4.4 \
56 -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \
57 -l pangoft2-1.0 \
58 -l SDL -l asound \
59 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \
60 -l SDL_image -l png12 -l z \
61 -o deliantra-gnu-linux-x86.bin -A addlist bin/deliantra || exit
62
63 todata deliantra-gnu-linux-x86.bin