summaryrefslogtreecommitdiff
path: root/mail/nmh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/nmh/Makefile')
-rw-r--r--mail/nmh/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile
index 1e980a887b8..0acd4f7c517 100644
--- a/mail/nmh/Makefile
+++ b/mail/nmh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 1999/03/06 23:18:51 kim Exp $
+# $NetBSD: Makefile,v 1.25 1999/03/07 01:16:25 kim Exp $
# FreeBSD Id: Makefile,v 1.2 1997/08/04 06:51:28 markm Exp
#
@@ -46,6 +46,13 @@ DOCDIR= share/doc/nmh
post-patch:
${TOUCH} ${WRKSRC}/stamp-h.in
+.if defined(NMH_HASH_BACKUP) && (${NMH_HASH_BACKUP} == yes)
+post-configure:
+ ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.bak
+ ${SED} -e 's/^\(#define *BACKUP_PREFIX\) *.*/\1 "#"/' \
+ < ${WRKSRC}/config.h.bak > ${WRKSRC}/config.h
+.endif
+
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
@for f in `grep '^${DOCDIR}/' ${PKGDIR}/PLIST`; do \