blob: 717f48dc24a75704b26e652f490a8718014345aa (
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
47
48
49
50
51
52
|
PORTNAME= tth
DISTVERSION= 4.16
CATEGORIES= textproc
MASTER_SITES= http://silas.psfc.mit.edu/tth/tars/
DISTNAME= tthC
MAINTAINER= alven@FreeBSD.org
COMMENT= TeX to HTML translator
WWW= http://silas.psfc.mit.edu/tth/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/license.txt
RUN_DEPENDS= bash:shells/bash \
ppmtogif:graphics/netpbm
USES= ghostscript:run shebangfix tar:tgz
SHEBANG_FILES= ${WRKSRC}/tthprep
WRKSRC= ${WRKDIR}/tthgold
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
post-patch:
cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
tth.c tthprep *.html *.tex
do-build:
.for c in tth tthrfcat tthsplit
cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${c} ${c}.c
.endfor
do-install:
.for p in tth tthrfcat tthsplit
${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin
.endfor
.for s in latex2gif tthprep
${INSTALL_SCRIPT} ${WRKSRC}/${s} ${STAGEDIR}${PREFIX}/bin
.endfor
${MKDIR} ${STAGEDIR}${DATADIR}/styles
${INSTALL_DATA} ${WRKSRC}/*.sty ${STAGEDIR}${DATADIR}/styles
cd ${WRKSRC} && ${COPYTREE_SHARE} babel ${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} *.html *.tex ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|