tetex: fixed the build with gcc 4.4.1.

This commit is contained in:
Lucas Hazel 2009-08-07 16:03:21 +02:00 committed by Tilman Sauerbeck
parent 2d4019b2ed
commit 170b868bef

View File

@ -6,7 +6,7 @@
name=tetex
version=3.0
release=3
release=4
source=(ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-src-$version.tar.gz \
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmf-$version.tar.gz \
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmfsrc-$version.tar.gz \
@ -31,6 +31,21 @@ build() {
--with-system-ncurses \
--with-system-t1lib \
--with-system-gd
# Files generated during make, use conflicing getline function.
# Build these manually first.
cd texk/web2c
for i in tangleboot tangle mft otangle weave
do
make ${i}.c
sed 's|getline|&_|' -i ${i}.[ch]
done
cd ../../
# Fix some more getline conflicts
sed 's|getline|&_|' -i texk/web2c/mpware/mpto.c
sed 's|getline|&_|' -i texk/dvipsk/afm2tfm.c
make
# temp fix, this tools tries to write in real root