svn commit: r356474 - head/mail/nmzmail
Pawel Pekala
pawel at FreeBSD.org
Wed Jun 4 12:07:49 UTC 2014
Author: pawel
Date: Wed Jun 4 12:07:48 2014
New Revision: 356474
URL: http://svnweb.freebsd.org/changeset/ports/356474
QAT: https://qat.redports.org/buildarchive/r356474/
Log:
- Add staging support
- Convert to new options framework
Modified:
head/mail/nmzmail/Makefile
Modified: head/mail/nmzmail/Makefile
==============================================================================
--- head/mail/nmzmail/Makefile Wed Jun 4 11:50:45 2014 (r356473)
+++ head/mail/nmzmail/Makefile Wed Jun 4 12:07:48 2014 (r356474)
@@ -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>
More information about the svn-ports-head
mailing list