ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/makebin.linux
Revision: 1.5
Committed: Sun Sep 2 09:48:41 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
CVS Tags: rel-0_99
Changes since 1.4: +10 -3 lines
Log Message:
some binary release infrastructure changes, fix keybindings by prefering raw ones over unicode ones

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