diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-15 10:50:20 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-15 10:50:20 +0000 |
commit | 88a89262cf852a1aa6af77f4cb383ef30377c816 (patch) | |
tree | 48400b90063d9873f1138fee97b5d66fcadbe1b4 /textproc/latex2html/Makefile | |
parent | 8374b17d3b952325ef4337635fbf02224a49627d (diff) | |
download | ports-88a89262cf852a1aa6af77f4cb383ef30377c816.tar.gz ports-88a89262cf852a1aa6af77f4cb383ef30377c816.zip |
Notes
Diffstat (limited to 'textproc/latex2html/Makefile')
-rw-r--r-- | textproc/latex2html/Makefile | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/textproc/latex2html/Makefile b/textproc/latex2html/Makefile index c3112a9b2fa0..80705c374594 100644 --- a/textproc/latex2html/Makefile +++ b/textproc/latex2html/Makefile @@ -14,6 +14,11 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/b/beta/} MAINTAINER= brett@peloton.runet.edu +.include <bsd.port.pre.mk> + +# Global variables +# + BUILD_DEPENDS= ${LOCALBASE}/bin/latex:${PORTSDIR}/print/teTeX \ ${LOCALBASE}/bin/gs:${PORTSDIR}/print/ghostscript-gnu \ ${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm @@ -25,13 +30,35 @@ CONFIGURE_ARGS= --with-perl=${PERL} \ --disable-gif \ --libdir=${DATADIR} -post-install: +MSG_FILE= ${PKGDIR}/pkg-message + +# Local variables +# + +DOC_FILES= FAQ INSTALL LICENSE README + +# Port-patch +# + +post-patch: patch-message + +patch-message: + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} + +# Post-install +# + +post-install: install-docs display-message + +install-docs: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} -.for file in FAQ INSTALL LICENSE README - ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/${PORTNAME} + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif + +display-message: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |