============================================================================

	teTeX-mp installation instructions (compiling the sources)

============================================================================

  1) getting the files
  2) install the inputs-tree
  3) unpack the sources and apply patches
  4) run make
  5) final configuration steps

============================================================================
  1) getting the files
============================================================================

The teTeX-mp distribution is build upon teTeX-0.3.4.  Therefore, you need 
both the stadard teTeX-0.3.4 sources and teTeX-mp sources and patches.

Get the teTeX-0.3.4 sources as described in step 2) of distrib/INSTALL.src.
In addition, you need:

    contrib/metapost/sources/teTeX-mp-src.tar.gz  	# the sources
    contrib/metapost/sources/teTeX-mp-patch.gz    	# the patches
    contrib/metapost/sources/teTeX-mp-lib.tar.gz  	# the libraries

============================================================================
  2) install the inputs-tree
============================================================================

Unpack the teTeX library tree at its "final" destination, as described
in step 3) of distrib/INSTALL.src, e.g.:

	cd /usr/local
	gzip -dc /usr/local/src/teTeX-lib-0.3.4.tar.gz | tar xpvf -

Following that, unpack the MetaPost library files in the same place:

	gzip -dc /usr/local/src/teTeX-mp-lib.tar.gz | tar xvf -

Note that teTeX-mp-lib.tar.gz contains a replacement for teTeX/texmf.cnf,
so the order of unpacking is important here.

============================================================================
  3) unpack the sources and apply patches
============================================================================

Unpack the teTeX sources and apply patches (if any), as described
in step 4) of distrib/INSTALL.src, e.g.:

	cd /usr/local/src
	gzip -dc teTeX-src-0.3.4.tar.gz | tar xpvf -
	gzip -dc teTeX-src-0.3.4-patch-* | patch -p0 -s

Following that, unpack the MetaPost sources in the same place:

	gzip -dc teTeX-mp-src.tar.gz | tar xvf -

Finally, apply the patches to integrate MetaPost into the teTeX sources, 
e.g.

	gzip -dc teTeX-mp-patch.gz | patch -p0 -s

Please note that the latter patch is always needed, even when there 
were no patches to appy to the standard teTeX sources.

============================================================================
  4) run make
============================================================================

Type "make world" as in step 6) of distrib/INSTALL.src and relax :-)

This is equivalent to
  make config clean texhash all install ini

If you need special previleges for 'make install' and 'make ini', you can
run two make in two separate runs:
  make config clean texhash all
  su
  make install ini

If you install for a second, third, ... platform, you can omit the 'texhash'
and 'ini' targets and simply run:
  make config clean all
  make install

Please note that applying the patches to incorporate MetaPost into teTeX 
involves modifying some very important files which ultimately leads to
recompiling the kpathsea library and everything else that depends on it, 
even though this wouldn't really be necessary in many cases. 

I'm afraid there's very little one can do about this, other than having 
"make world" run in batch mode and not care about it until it's finished. 

============================================================================
  5) final configuration steps
============================================================================

Please refer to step 7) of distrib/INSTALL.src for details on this topic.  
All the functionality needed to set up MetaPost has been integrated into
texconfig, so that it is covered as well, when you configure your teTeX
system as usual.






