aboutsummaryrefslogtreecommitdiff
path: root/graphics/netpbm/Makefile
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-08-26 00:17:43 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-08-26 00:17:43 +0000
commita6ad1b3b3ddd0942b9898dc019c2f4f2e1328245 (patch)
treed7587368939b8a4ec35756074717431a3871ac06 /graphics/netpbm/Makefile
parenteb84bb077004db6523a21e97517be408fd2b3aac (diff)
downloadports-a6ad1b3b3ddd0942b9898dc019c2f4f2e1328245.tar.gz
ports-a6ad1b3b3ddd0942b9898dc019c2f4f2e1328245.zip
Notes
Diffstat (limited to 'graphics/netpbm/Makefile')
-rw-r--r--graphics/netpbm/Makefile9
1 files changed, 9 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>