ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/makebin.linux
Revision: 1.18
Committed: Mon Sep 29 03:05:00 2008 UTC (15 years, 9 months ago) by root
Branch: MAIN
Changes since 1.17: +4 -2 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 root 1.17 EV_EVENTFD=
6 root 1.1 PERL=/usr
7     PERLLIB=/usr/lib/perl5/
8 root 1.4 PANGO=1.5.0
9 root 1.3 #PERL=/opt/perl
10     #PERLLIB=/opt/perl/lib/perl5/
11 root 1.4 #PANGO=1.6.0
12 root 1.1
13 root 1.10 for mod in AnyEvent EV JSON-XS Deliantra Compress-LZF BDB; do
14 root 1.8 (
15     cd /root/src/$mod
16 root 1.13 $PERL/bin/perl Makefile.PL </dev/null
17 root 1.8 make clean
18 root 1.13 $PERL/bin/perl Makefile.PL </dev/null
19     make install || exit
20     make clean
21     )
22 root 1.8 done
23 root 1.5
24 root 1.1 (
25     # patch braindamaged pango
26 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
27     printf "%s" "$PANGO" >pangoversion
28 root 1.1 cat <<EOF
29 root 1.5 pangoversion;root/pangoversion
30 root 1.1 pango-1.0.so.0;shlib/i486-linux-gnu-thread-multi/libpango-1.0.so.0
31     /usr/lib/libglib-2.0.so.0;shlib/i486-linux-gnu-thread-multi/libglib-2.0.so.0
32     /usr/lib/libstdc++.so.6;shlib/i486-linux-gnu-thread-multi/libstdc++.so.6
33     /usr/lib/libaudio.so.2;shlib/i486-linux-gnu-thread-multi/libaudio.so.2
34     /lib/libgcc_s.so.1;shlib/i486-linux-gnu-thread-multi/libgcc_s.so.1
35 root 1.3 /usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO
36 root 1.11 docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst
37 root 1.1 EOF
38    
39 root 1.11 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST
40 root 1.1
41     ) >addlist
42    
43 root 1.5 trap "rm addlist pangoversion pango-1.0.so.0" 0
44 root 1.1
45 root 1.5 $PERL/bin/perl Makefile.PL
46 root 1.13 make clean
47     $PERL/bin/perl Makefile.PL
48     make install || exit
49 root 1.1
50 root 1.5 wait
51    
52 root 1.1 LD_LIBRARY_PATH=/lib:/usr/lib \
53 root 1.10 $PERL/bin/pp -C -I /root/src/Deliantra \
54 root 1.7 -M AnyEvent::Impl::EV \
55 root 1.14 -M attributes \
56 root 1.11 -a "blib/arch/auto/Deliantra/Client/Client.so;lib/auto/Deliantra/Client/Client.so" \
57 root 1.16 -l db-4.6 \
58 root 1.1 -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \
59     -l pangoft2-1.0 \
60 root 1.3 -l SDL -l asound \
61 root 1.1 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \
62     -l SDL_image -l png12 -l z \
63 root 1.18 -o deliantra-gnu-linux-x86 -A addlist bin/deliantra || exit
64 root 1.1
65 root 1.15 make clean
66    
67 root 1.18 tar cf deliantra-gnu-linux-x86.tar deliantra-gnu-linux-x86
68     gzip -9vf deliantra-gnu-linux-x86.tar
69     todata deliantra-gnu-linux-x86.tar.gz
70 root 1.16