ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/makebin.linux
(Generate patch)

Comparing cf.schmorp.de/Deliantra-Client/makebin.linux (file contents):
Revision 1.19 by root, Tue Sep 30 03:05:07 2008 UTC vs.
Revision 1.20 by root, Wed Dec 24 05:03:16 2008 UTC

1#!/bin/bash 1#!/bin/bash
2 2
3# Convert a gtk2-perl program to a standalone linux binary 3# Convert a gtk2-perl program to a standalone linux binary
4 4
5EV_EVENTFD= 5EV_EVENTFD=
6
7if [ $(arch) = i686 ]; then
6PERL=/usr 8 PERL=/usr
7PERLLIB=/usr/lib/perl5/ 9 PERLLIB=/usr/lib/perl5/
10 PP=/usr/bin/pp
11 LIBDB=db-4.6
12 ARCHNAME=x86
13 PERLARCH=i486-linux-gnu-thread-multi
14else
15 PERL=/usr
16 PERLLIB=/usr/lib/perl5/
17 PP=/usr/local/bin/pp
18 LIBDB=db-4.7
19 ARCHNAME=amd64
20 PERLARCH=x86_64-linux-gnu-thread-multi
21fi
22
8PANGO=1.5.0 23PANGO=1.5.0
9#PERL=/opt/perl 24#PERL=/opt/perl
10#PERLLIB=/opt/perl/lib/perl5/ 25#PERLLIB=/opt/perl/lib/perl5/
11#PANGO=1.6.0 26#PANGO=1.6.0
12 27
25# # patch braindamaged pango 40# # patch braindamaged pango
26 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 41 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 42 printf "%s" "$PANGO" >pangoversion
28#pangoversion;root/pangoversion 43#pangoversion;root/pangoversion
29 cat <<EOF 44 cat <<EOF
30pango-1.0.so.0;shlib/i486-linux-gnu-thread-multi/libpango-1.0.so.0 45pango-1.0.so.0;shlib/$PERLARCH/libpango-1.0.so.0
31/usr/lib/libglib-2.0.so.0;shlib/i486-linux-gnu-thread-multi/libglib-2.0.so.0 46/usr/lib/libglib-2.0.so.0;shlib/$PERLARCH/libglib-2.0.so.0
32/usr/lib/libstdc++.so.6;shlib/i486-linux-gnu-thread-multi/libstdc++.so.6 47/usr/lib/libstdc++.so.6;shlib/$PERLARCH/libstdc++.so.6
33/usr/lib/libaudio.so.2;shlib/i486-linux-gnu-thread-multi/libaudio.so.2 48/usr/lib/libaudio.so.2;shlib/$PERLARCH/libaudio.so.2
34/lib/libgcc_s.so.1;shlib/i486-linux-gnu-thread-multi/libgcc_s.so.1 49/lib/libgcc_s.so.1;shlib/$PERLARCH/libgcc_s.so.1
35/usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO 50/usr/lib/pango/$PANGO;root/usr/lib/pango/$PANGO
36pango-1.0.so.0;shlib/i486-linux-gnu-thread-multi/libpango-1.0.so.0 51pango-1.0.so.0;shlib/$PERLARCH/libpango-1.0.so.0
37docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst 52docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst
38EOF 53EOF
39 54
40 cat <<EOF >pango.rc 55 cat <<EOF >pango.rc
41[Pango] 56[Pango]
87make install || exit 102make install || exit
88 103
89wait 104wait
90 105
91LD_LIBRARY_PATH=/lib:/usr/lib \ 106LD_LIBRARY_PATH=/lib:/usr/lib \
92$PERL/bin/pp -C -I /root/src/Deliantra \ 107$PP -C -I /root/src/Deliantra \
93 -M AnyEvent::Impl::EV \ 108 -M AnyEvent::Impl::EV \
94 -M attributes \ 109 -M attributes \
95 -a "blib/arch/auto/Deliantra/Client/Client.so;lib/auto/Deliantra/Client/Client.so" \ 110 -a "blib/arch/auto/Deliantra/Client/Client.so;lib/auto/Deliantra/Client/Client.so" \
96 -l db-4.6 \ 111 -l $LIBDB \
97 -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \ 112 -l glib-2.0 -l gobject-2.0 -l gmodule-2.0 \
98 -l pangoft2-1.0 \ 113 -l pangoft2-1.0 \
99 -l SDL -l asound \ 114 -l SDL -l asound \
100 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \ 115 -l SDL_mixer -l vorbisfile -l vorbis -l ogg -l smpeg -l stdc++ \
101 -l SDL_image -l png12 -l z \ 116 -l SDL_image -l png12 -l z \
102 -o deliantra-gnu-linux-x86 -A addlist bin/deliantra || exit 117 -o deliantra-gnu-linux-$ARCHNAME -A addlist bin/deliantra || exit
103 118
104make clean 119make clean
105 120
106tar cf deliantra-gnu-linux-x86.tar deliantra-gnu-linux-x86 121tar cf deliantra-gnu-linux-$ARCHNAME.tar deliantra-gnu-linux-$ARCHNAME
107gzip -9vf deliantra-gnu-linux-x86.tar 122gzip -9vf deliantra-gnu-linux-$ARCHNAME.tar
108todata deliantra-gnu-linux-x86.tar.gz 123todata deliantra-gnu-linux-$ARCHNAME.tar.gz
109 124

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines