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, 3 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

# User Rev Content
1 root 1.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 root 1.4 PANGO=1.5.0
8 root 1.3 #PERL=/opt/perl
9     #PERLLIB=/opt/perl/lib/perl5/
10 root 1.4 #PANGO=1.6.0
11 root 1.1
12 root 1.10 for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do
13 root 1.8 (
14     cd /root/src/$mod
15 root 1.13 $PERL/bin/perl Makefile.PL </dev/null
16 root 1.8 make clean
17 root 1.13 $PERL/bin/perl Makefile.PL </dev/null
18     make install || exit
19     make clean
20     )
21 root 1.8 done
22 root 1.5
23 root 1.1 (
24     # patch braindamaged pango
25 root 1.5 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 root 1.1 cat <<EOF
28 root 1.5 pangoversion;root/pangoversion
29 root 1.1 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 root 1.3 /usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO
35 root 1.11 docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst
36 root 1.1 EOF
37    
38 root 1.11 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST
39 root 1.1
40     ) >addlist
41    
42 root 1.5 trap "rm addlist pangoversion pango-1.0.so.0" 0
43 root 1.1
44 root 1.5 $PERL/bin/perl Makefile.PL
45 root 1.13 make clean
46     $PERL/bin/perl Makefile.PL
47     make install || exit
48 root 1.1
49 root 1.5 wait
50    
51 root 1.1 LD_LIBRARY_PATH=/lib:/usr/lib \
52 root 1.10 $PERL/bin/pp -C -I /root/src/Deliantra \
53 root 1.7 -M AnyEvent::Impl::EV \
54 root 1.11 -a "blib/arch/auto/Deliantra/Client/Client.so;lib/auto/Deliantra/Client/Client.so" \
55 root 1.1 -l db-4.4 \
56     -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \
57     -l pangoft2-1.0 \
58 root 1.3 -l SDL -l asound \
59 root 1.1 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \
60     -l SDL_image -l png12 -l z \
61 root 1.13 -o deliantra-gnu-linux-x86.bin -A addlist bin/deliantra || exit
62 root 1.1
63 root 1.6 todata deliantra-gnu-linux-x86.bin