aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/tth/Makefile
blob: 0c622b941ea98039c3007eeeccfc3eb61eaf8808 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    tth
# Date created:         19 Feb 1998
# Whom:                 Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tth
PORTVERSION=    3.79
CATEGORIES= textproc
MASTER_SITES=   http://hutchinson.belmont.ma.us/tth/tth-noncom/ \
        http://redundancy.redundancy.org/mirror/
DISTNAME=   tth_C
EXTRACT_SUFX=   .tgz

MAINTAINER= lx@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

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>