aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-10-15 10:50:20 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-10-15 10:50:20 +0000
commit88a89262cf852a1aa6af77f4cb383ef30377c816 (patch)
tree48400b90063d9873f1138fee97b5d66fcadbe1b4 /textproc
parent8374b17d3b952325ef4337635fbf02224a49627d (diff)
downloadports-88a89262cf852a1aa6af77f4cb383ef30377c816.tar.gz
ports-88a89262cf852a1aa6af77f4cb383ef30377c816.zip
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/latex2html/Makefile37
-rw-r--r--textproc/latex2html/pkg-message6
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.