aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-10-15 18:50:20 +0800
committerijliao <ijliao@FreeBSD.org>2001-10-15 18:50:20 +0800
commit7ba87443adb97d12fb27637a7c2c8c60ca9874ff (patch)
tree46bd1262db54f329bb7ceedcf11f50886a041835 /textproc
parent34bb093ffffd1edc255dcb36cf92734aa43c9028 (diff)
downloadfreebsd-ports-gnome-7ba87443adb97d12fb27637a7c2c8c60ca9874ff.tar.gz
freebsd-ports-gnome-7ba87443adb97d12fb27637a7c2c8c60ca9874ff.tar.zst
freebsd-ports-gnome-7ba87443adb97d12fb27637a7c2c8c60ca9874ff.zip
targets reworked a lot
PR: 30381 Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
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.