$Id: README 26821 2012-06-04 08:45:54Z peter $
Public domain.  Originally written 2005 by Karl Berry.

Extra utilities we (optionally) compile for TeX Live.
See comments in ../texk/README.

asymptote 2.16 - checked 31may12
  update to TL from CTAN, to include prebuilt doc.
  see http://tug.org/texlive/build.html#asymptote
  and tlpkg/bin/tl-update-asy

chktex 1.6.6 - checked 10apr12
  http://mirror.ctan.org/support/chktex/ for pdf, otherwise same as
  http://download.savannah.gnu.org/releases/chktex/

mtx 0.60d - checked 16apr12
  http://mirror.ctan.org/support/m-tx/

pmx 2.6.18 - checked 18may12
  http://mirror.ctan.org/support/pmx/

ps2eps 1.68 - checked 10may12
  http://tm.uka.de/~bless/ps2eps

psutils p17 - checked 10may12
  http://www.tardis.ed.ac.uk/~ajcd/psutils/index.html
  -> http://mirror.ctan.org/support/psutils/
  https://savannah.nongnu.org/bugs/?30782
  -> http://www.connochaetos.org/misc/psutils-libre-1.17.tar.gz
  (Fabrice made small modifications for Windows, it seems)

t1utils 1.37 - checked 10may12
  http://www.lcdf.org/type/

tpic2pdftex 1.97 - checked 10may12
  http://mirror.ctan.org/graphics/tpic2pdftex/

vlna 1.5 - checked 10may12
  ftp://math.feld.cvut.cz/pub/olsak/vlna/

xindy - see just below

xpdfopen 0.83 - checked 10may12
  http://mirror.ctan.org/support/xpdfopen/
  http://cs.acadiau.ca/~jdiamond/xpdfopen/


xindy 2.4 - checked 13may10
  (with adaptations for TL)
  http://www.ctan.org/indexing/xindy/

After building clisp as described below, run the TL
  Build --enable-xindy CLISP=$clisp_builddir/clisp
to include xindy in the build.  It is disabled by default.

Before clisp 2.48, do not use nohup when building clisp; this may cause
weird build problems.  Regular redirections of stdout/stderr are ok.
Fixed in 2.48: http://sourceforge.net/tracker/?func=detail&aid=2805778&group_id=1355&atid=101355

mkdir clisp; cd clisp
clisp_basedir=`pwd`
clisp_toolsdir=$clisp_basedir/clisp-tools
clisp_builddir=$clisp_basedir/clisp-build
mkdir $clisp_toolsdir

wget=wget  # or "curl -O" or whatever

cd $clisp_basedir
$wget http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz
gzip -dc libsigsegv-2.10.tar.gz | tar xf -
cd libsigsegv-2.10
./configure --prefix=$clisp_toolsdir && make && make check && make install

# you may need this hack on 64-bit systems
# if clisp's configure will not find libsigsegv.
ln -s lib $clisp_toolsdir/lib64

# on the mac, get libiconv and ensure link statically.
# not needed on other platforms?
cd $clisp_basedir
$wget http://ftp.gnu.org/gnu/libiconv/libiconv-1.13.1.tar.gz
gzip -dc libiconv-1.13.1.tar.gz | tar xf -
cd libiconv-1.13.1
./configure --enable-static --prefix=$clisp_toolsdir \
&& make && make check && make install
#
cd $clisp_basedir/clisp-tools/lib
rm *.dylib
rm *.la

cd $clisp_basedir
$wget http://ftp.gnu.org/gnu/clisp/release/2.49/clisp-2.49.tar.gz
gzip -dc clisp-2.49.tar.gz | tar xf -
cd clisp-2.49

# On Cygwin:
# mv modules/syscalls/configure modules/syscalls/configure.orig
# sed -e '{s%-luuid%-L/usr/lib/w32api -luuid%}' \
#  modules/syscalls/configure.orig > modules/syscalls/configure
#
# On FreeBSD/amd64: add --disable-mmap.
#
./configure --with-libsigsegv-prefix=$clisp_toolsdir --without-readline \
  --disable-nls \
  $clisp_builddir \
&& cd $clisp_builddir \
&& make
