… | |
… | |
76 | if true; then |
76 | if true; then |
77 | for mod in deliantra/Deliantra deliantra/Deliantra-Client; do |
77 | for mod in deliantra/Deliantra deliantra/Deliantra-Client; do |
78 | # for mod in common-sense AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB Guard deliantra/Deliantra-Client; do |
78 | # for mod in common-sense AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB Guard deliantra/Deliantra-Client; do |
79 | # for mod in CFPlus; do |
79 | # for mod in CFPlus; do |
80 | ( |
80 | ( |
81 | cd /root/src/$mod |
81 | cd /root/src/$mod || exit |
82 | cvs update -AdP |
82 | cvs update -AdP |
|
|
83 | rm -rf blib |
|
|
84 | set -x |
83 | $PERL Makefile.PL </dev/null >/dev/null |
85 | $PERL Makefile.PL </dev/null >/dev/null |
84 | $MAKE clean >/dev/null |
86 | $MAKE clean >/dev/null |
85 | $PERL Makefile.PL </dev/null >/dev/null |
87 | $PERL Makefile.PL </dev/null >/dev/null |
86 | if ! $MAKE install >log 2>&1; then |
88 | if ! $MAKE install >log 2>&1; then |
|
|
89 | echo |
|
|
90 | echo error while building $mod |
87 | cat log |
91 | cat log |
88 | exit |
92 | exit |
89 | fi |
93 | fi |
90 | rm -f log |
94 | rm -f log |
91 | $MAKE clean >/dev/null |
95 | $MAKE clean >/dev/null |
… | |
… | |
256 | |
260 | |
257 | # convert perl to a non-console-app |
261 | # convert perl to a non-console-app |
258 | $PERL -MWin32::Exe -e '$e = new Win32::Exe"perl.exe"; $e->set_subsystem_windows; $e->write' |
262 | $PERL -MWin32::Exe -e '$e = new Win32::Exe"perl.exe"; $e->set_subsystem_windows; $e->write' |
259 | |
263 | |
260 | else |
264 | else |
261 | # patch braindamaged pango |
|
|
262 | perl -pe 's{/u(?=sr/lib(32)?/pango)}{/\x00}g; s{\Q'$PANGO'\E\x00}{y.t.u\x00}g' <$SYSLIB/libpango-1.0.$LIB0 >libpango-1.0.$LIB0 |
|
|
263 | chmod 755 libpango-1.0.$LIB0 |
|
|
264 | |
|
|
265 | for lib in mikmod vorbisfile; do |
265 | for lib in mikmod vorbisfile; do |
266 | cp -p $SYSLIB/lib$lib.$LIB0 . |
266 | cp -p $SYSLIB/lib$lib.$LIB0 . |
267 | chmod 755 lib$lib.$LIB0 |
267 | chmod 755 lib$lib.$LIB0 |
268 | done |
268 | done |
269 | fi |
269 | fi |
… | |
… | |
277 | for lib in \ |
277 | for lib in \ |
278 | dl c m rt pthread nsl crypt \ |
278 | dl c m rt pthread nsl crypt \ |
279 | X11 Xext Xau Xdmcp ICE SM Xrandr Xrender Xxf86vm drm GL \ |
279 | X11 Xext Xau Xdmcp ICE SM Xrandr Xrender Xxf86vm drm GL \ |
280 | z |
280 | z |
281 | do |
281 | do |
282 | rm -f lib"$lib".$SO0 |
282 | rm -f lib"$lib".$LIB0 |
283 | done |
283 | done |
|
|
284 | |
|
|
285 | if [ "$OS" != windows ]; then |
|
|
286 | # patch braindamaged pango |
|
|
287 | set libpango-1.0.$LIB0 |
|
|
288 | perl -pe 's{/u(?=sr/lib(32)?/pango)}{/\x00}g; s{\Q'$PANGO'\E\x00}{y.t.u\x00}g' <"$1" >"$1~" && mv "$1~" "$1" |
|
|
289 | chmod 755 "$1" |
|
|
290 | fi |
284 | |
291 | |
285 | if [ "$OS" = darwin ]; then |
292 | if [ "$OS" = darwin ]; then |
286 | # "dll hell" is most severe on os x, because apple |
293 | # "dll hell" is most severe on os x, because apple |
287 | # does not generally give a shit for backwards compatibility, |
294 | # does not generally give a shit for backwards compatibility, |
288 | # alwayss ships outdated libraries and often provides libraries |
295 | # alwayss ships outdated libraries and often provides libraries |