1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/textproc/tth/Makefile
Boris Samorodov 1b3ed9b17a - update from 3.74 to 3.76:
Changes between versions 3.75 and 3.76
  ______________________________________
  Fix ignoring of %%tth: before LaTeX \item. 31 Aug 06

  Changes between versions 3.74 and 3.75
  ______________________________________
  Make fatal error exits more systematic.
  Implement orderly termination at return value in tthfunc.

- change my email to FreeBSD.org one.
2006-10-07 16:14:11 +00:00

54 lines
1.4 KiB
Makefile

# New ports collection makefile for: tth
# Date created: 19 Feb 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tth
PORTVERSION= 3.76
CATEGORIES= textproc
MASTER_SITES= http://hutchinson.belmont.ma.us/tth/tth-noncom/
DISTNAME= tth_C
EXTRACT_SUFX= .tgz
MAINTAINER= bsam@FreeBSD.org
COMMENT= A TeX to HTML translator
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX \
ppmtogif:${PORTSDIR}/graphics/netpbm
USE_GHOSTSCRIPT_RUN= yes
MAN1= tth.1
PLIST_FILES= bin/latex2gif bin/ps2gif bin/ps2png bin/tth bin/Xfonts.fix
PORTDOCS= license.txt tth_manual.html
pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
@${ECHO_MSG} ""
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
@${ECHO_MSG} ""
.endif
do-build:
cd ${WRKSRC}; ${CC} ${CFLAGS} tth.c -o tth -ll
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tth ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/latex2gif ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/ps2gif ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/ps2png ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/Xfonts.fix ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tth.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/tth_manual.html ${DOCSDIR}
.endif
@${SED} -e "s,%%PREFIX%%,${PREFIX}," ${PKGMESSAGE}
.include <bsd.port.mk>