diff options
author | leeym <leeym@FreeBSD.org> | 2003-08-26 00:17:43 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-08-26 00:17:43 +0000 |
commit | db630259661614280f22b72c592f7c1648e238df (patch) | |
tree | cf1c504db4d630266999b45727464886480e3f64 | |
parent | ba8821bc2ee0730879fbc3dd805cdfb3749f3cf5 (diff) | |
download | FreeBSD-ports-db630259661614280f22b72c592f7c1648e238df.zip FreeBSD-ports-db630259661614280f22b72c592f7c1648e238df.tar.gz |
install the manpage which points to the documentation on the Homepage.
PR: 50822
Submitted by: Marco Molteni <molter@tin.it>
-rw-r--r-- | graphics/netpbm/Makefile | 9 | ||||
-rw-r--r-- | graphics/netpbm/pkg-plist | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index b9323e5..5f888bd 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -29,6 +29,8 @@ INSTALL_TARGET= install.bin install.lib install.data install-dev INSTALLS_SHLIB= yes NO_CDROM= "Not allowed to sell" +MAN1= netpbm.1 + post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ s|%%LOCALBASE%%|${LOCALBASE}|g ; \ @@ -38,4 +40,11 @@ post-patch: @${LN} -sf ${WRKSRC}/lib/util/shhopt.h ${WRKSRC}/lib/util/pm_shhopt.h @${LN} -sf ${WRKSRC}/lib/util/nstring.h ${WRKSRC}/lib/util/pm_nstring.h +post-install: + @${ECHO_MSG} "===> Installing man pages..." + @${REINPLACE_CMD} -e 's|doc/USERDOC|${DOCSDIR}/USERDOC|g' ${WRKSRC}/doc/netpbm.1 + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/USERDOC ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/netpbm.1 ${MANPREFIX}/man/man1 + .include <bsd.port.mk> diff --git a/graphics/netpbm/pkg-plist b/graphics/netpbm/pkg-plist index 3a433cb..bd01796 100644 --- a/graphics/netpbm/pkg-plist +++ b/graphics/netpbm/pkg-plist @@ -289,4 +289,6 @@ share/netpbm/palmgray1.map share/netpbm/palmgray2.map share/netpbm/palmgray4.map share/netpbm/rgb.txt +%%PORTDOCS%%share/doc/netpbm/USERDOC +%%PORTDOCS%%@dirrm share/doc/netpbm @dirrm share/netpbm |