ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/makebin.linux
Revision: 1.11
Committed: Wed Dec 26 21:03:21 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
Changes since 1.10: +4 -2 lines
Log Message:
initial module hiding

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
16 make install
17 make clean
18 ) &
19 done
20
21 (
22 # patch braindamaged pango
23 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
24 printf "%s" "$PANGO" >pangoversion
25 cat <<EOF
26 pangoversion;root/pangoversion
27 pango-1.0.so.0;shlib/i486-linux-gnu-thread-multi/libpango-1.0.so.0
28 /usr/lib/libglib-2.0.so.0;shlib/i486-linux-gnu-thread-multi/libglib-2.0.so.0
29 /usr/lib/libstdc++.so.6;shlib/i486-linux-gnu-thread-multi/libstdc++.so.6
30 /usr/lib/libaudio.so.2;shlib/i486-linux-gnu-thread-multi/libaudio.so.2
31 /lib/libgcc_s.so.1;shlib/i486-linux-gnu-thread-multi/libgcc_s.so.1
32 /usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO
33 docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst
34 EOF
35
36 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST
37
38 ) >addlist
39
40 trap "rm addlist pangoversion pango-1.0.so.0" 0
41
42 $PERL/bin/perl Makefile.PL
43 make install
44
45 wait
46
47 LD_LIBRARY_PATH=/lib:/usr/lib \
48 $PERL/bin/pp -C -I /root/src/Deliantra \
49 -M AnyEvent::Impl::EV \
50 -a "blib/arch/auto/Deliantra/Client/Client.so;lib/auto/Deliantra/Client/Client.so" \
51 -M Deliantra::Client \
52 -l db-4.4 \
53 -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \
54 -l pangoft2-1.0 \
55 -l SDL -l asound \
56 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \
57 -l SDL_image -l png12 -l z \
58 -o deliantra-gnu-linux-x86.bin -A addlist bin/deliantra
59
60 todata deliantra-gnu-linux-x86.bin