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 | |
parent | add py-websvcs (diff) |
targets reworked a lot
PR: 30381
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
Notes
Notes:
svn path=/head/; revision=48780
Diffstat (limited to 'textproc/latex2html')
-rw-r--r-- | textproc/latex2html/Makefile | 37 | ||||
-rw-r--r-- | textproc/latex2html/pkg-message | 6 |
2 files changed, 35 insertions, 8 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> diff --git a/textproc/latex2html/pkg-message b/textproc/latex2html/pkg-message index b123b7f96916..56695a9f21b7 100644 --- a/textproc/latex2html/pkg-message +++ b/textproc/latex2html/pkg-message @@ -1,3 +1,3 @@ -Individual user configurations can be accomplished by placing a copy of -/usr/local/share/latex2html/dot.latex2html-init in the user's home -directory and editing to preference. +**** Individual user configurations can be accomplished by placing a copy + of %%PREFIX%%/share/latex2html/dot.latex2html-init in the user's home + directory and editing to preference. |