# $Id: Portfile,v 1.15 2006/01/18 16:56:15 digdog Exp $

PortSystem      1.0
name            tth
version         3.72
categories      textproc print
maintainers     digdog@opendarwin.org
description     a TeX to HTML transaltor
long_description	\
	TTH translates TEX, the predominant mark-up language for 	\
	expressing mathematics, into HTML, the language of 		\
	world-wide-web browsers. It thereby enables mathematical 	\
	documents to be made available on the web. Document structure, 	\
	using either the Plain or LaTeX macro packages, is also 	\
	translated and incorporated in the form of hyperlinks.
platforms       darwin freebsd
homepage        http://hutchinson.belmont.ma.us/tth/

dist_subdir     ${name}/${version}

master_sites    http://hutchinson.belmont.ma.us/tth/tth-noncom/
checksums       md5 93e8cc66dea10938bcc83f288488ca50
distname        ${portname}_C
extract.suffix  .tgz

use_configure   no

build           {
	cd ${workpath}/${distname};
	system "cc -o ${portname} ${portname}.c"
}

destroot        {
	xinstall -m 755 ${workpath}/${distname}/tth ${destroot}/${prefix}/bin
	xinstall -m 755 ${workpath}/${distname}/latex2gif ${destroot}/${prefix}/bin
	xinstall -m 755 ${workpath}/${distname}/ps2gif ${destroot}/${prefix}/bin
	xinstall -m 755 ${workpath}/${distname}/ps2png ${destroot}/${prefix}/bin
	xinstall -m 644 ${workpath}/${distname}/tth.1 ${destroot}/${prefix}/share/man/man1
}
