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