ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/makebin.linux
Revision: 1.4
Committed: Thu Jul 5 06:49:10 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.3: +2 -1 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     (
13     # patch braindamaged pango
14 root 1.3 perl -pe 's{/u(?=sr/lib(32)?/pango)}{/\x00}g; s{\Q'$PANGO'\E\x00}{\x00.-.-\x00}g' </usr/lib/libpango-1.0.so.0 >pango-1.0.so.0
15 root 1.1 cat <<EOF
16     pango-1.0.so.0;shlib/i486-linux-gnu-thread-multi/libpango-1.0.so.0
17     /usr/lib/libglib-2.0.so.0;shlib/i486-linux-gnu-thread-multi/libglib-2.0.so.0
18     /usr/lib/libstdc++.so.6;shlib/i486-linux-gnu-thread-multi/libstdc++.so.6
19     /usr/lib/libaudio.so.2;shlib/i486-linux-gnu-thread-multi/libaudio.so.2
20     /lib/libgcc_s.so.1;shlib/i486-linux-gnu-thread-multi/libgcc_s.so.1
21 root 1.3 /usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO
22 root 1.1 docwiki.pst;root/CFPlus/resources/docwiki.pst
23     EOF
24    
25     perl -ne '/^(resources\/.*)/ and print "$1;root/CFPlus/$1\n"' <MANIFEST
26    
27     ) >addlist
28    
29     trap "rm addlist; rm pango-1.0.so.0" 0
30    
31     perl Makefile.PL
32     make install
33    
34     LD_LIBRARY_PATH=/lib:/usr/lib \
35     $PERL/bin/pp -C -I /root/src/Crossfire \
36     -M Event::idle -M Event::io -M Event::timer -M Event::signal -M Event::var \
37     -M AnyEvent::Impl::Event \
38     -l db-4.4 \
39     -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \
40     -l pangoft2-1.0 \
41 root 1.3 -l SDL -l asound \
42 root 1.1 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \
43     -l SDL_image -l png12 -l z \
44     -o cfplus-gnu-linux-x86.bin -A addlist bin/cfplus
45