aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-04 20:07:48 +0800
committerpawel <pawel@FreeBSD.org>2014-06-04 20:07:48 +0800
commit6c40e9267d81f8adcc7b853b6ce43ddf15aac97b (patch)
tree30e76d2f6f57c8aec7b30b67a5122b0d4b2ba7e8 /mail
parent380303036df8b1b1a44881841863f9e4ad5a7397 (diff)
downloadfreebsd-ports-gnome-6c40e9267d81f8adcc7b853b6ce43ddf15aac97b.tar.gz
freebsd-ports-gnome-6c40e9267d81f8adcc7b853b6ce43ddf15aac97b.tar.zst
freebsd-ports-gnome-6c40e9267d81f8adcc7b853b6ce43ddf15aac97b.zip
- Add staging support
- Convert to new options framework
Diffstat (limited to 'mail')
-rw-r--r--mail/nmzmail/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/nmzmail/Makefile b/mail/nmzmail/Makefile
index fc8a213ec4c1..41b981eead61 100644
--- a/mail/nmzmail/Makefile
+++ b/mail/nmzmail/Makefile
@@ -18,7 +18,8 @@ USES= gmake
PLIST_FILES= bin/nmzmail
PORTDOCS= README NEWS
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
pre-extract:
.if !defined(MAX_MAIL_DIRS)
@ ${ECHO_MSG} "You can define MAX_MAIL_DIRS=n."
@@ -32,9 +33,7 @@ post-extract:
.endif
post-install:
-.if !defined(NOPORTDOCS)
- @${INSTALL} -d ${DOCSDIR}/
- @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>