febc829cbf
* Use actual MASTER_SITES and WWW
* Specify LICENSE and LICENSE_FILE
* Install all the *.sty and babel files under ${DATADIR}
* Simplify Makefile
* Make DOCS option really work
* Pet portclippy(1) and portfmt(1)
Approved by: yuri@ (Mentor)
Differential Revision: https://reviews.freebsd.org/D53571
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
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>
|