diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2003-08-26 00:17:43 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2003-08-26 00:17:43 +0000 |
commit | a6ad1b3b3ddd0942b9898dc019c2f4f2e1328245 (patch) | |
tree | d7587368939b8a4ec35756074717431a3871ac06 /graphics/netpbm | |
parent | - Change MASTER_SITES: the project finally found a new home (diff) |
install the manpage which points to the documentation on the Homepage.
PR: 50822
Submitted by: Marco Molteni <molter@tin.it>
Notes
Notes:
svn path=/head/; revision=87704
Diffstat (limited to 'graphics/netpbm')
-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 b9323e578eb9..5f888bde5d95 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 3a433cbd6b1e..bd0179661545 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 |