summaryrefslogtreecommitdiff
path: root/mail/nmh/options.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-09-22 22:00:41 +0000
committerjlam <jlam>2005-09-22 22:00:41 +0000
commit633ff3d82af679bac75799d423083f4af8ae49b3 (patch)
treeb0eba66173752015bad7ef62e20035e5f7b07b70 /mail/nmh/options.mk
parent98f494329f5231b69b2839c0bc00073086bcb968 (diff)
downloadpkgsrc-633ff3d82af679bac75799d423083f4af8ae49b3.tar.gz
Convert to use options framework.
Diffstat (limited to 'mail/nmh/options.mk')
-rw-r--r--mail/nmh/options.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/nmh/options.mk b/mail/nmh/options.mk
new file mode 100644
index 00000000000..1d379ad1090
--- /dev/null
+++ b/mail/nmh/options.mk
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2005/09/22 22:00:42 jlam Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.nmh
+PKG_SUPPORTED_OPTIONS= nmh-backup-hash
+PKG_OPTIONS_LEGACY_VARS+= NMH_HASH_BACKUP:nmh-backup-hash
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Prepend a "#" instead of a "," to the name of a message that is
+### "removed" by rmm.
+###
+.if !empty(PKG_OPTIONS:Mnmh-backup-hash)
+post-configure: nmh-hash-backup
+
+nmh-hash-backup:
+ cd ${WRKSRC}; file=config.h; \
+ ${SED} -e 's/^\(#define *BACKUP_PREFIX\) *.*/\1 "#"/' \
+ $$file > $$file.new; \
+ ${MV} -f $$file.new $$file
+.endif