svn commit: r437276 - head/mail/libspf
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Mar 30 09:02:05 UTC 2017
Author: amdmi3
Date: Thu Mar 30 09:02:04 2017
New Revision: 437276
URL: https://svnweb.freebsd.org/changeset/ports/437276
Log:
- Switch to options helpers
Modified:
head/mail/libspf/Makefile
Modified: head/mail/libspf/Makefile
==============================================================================
--- head/mail/libspf/Makefile Thu Mar 30 08:26:06 2017 (r437275)
+++ head/mail/libspf/Makefile Thu Mar 30 09:02:04 2017 (r437276)
@@ -27,34 +27,23 @@ OPTIONS_DEFINE= RFC_RECURSION LOGFILE_ST
RFC_RECURSION_DESC= Change SPF recursion to 20 (as per RFC)
LOGFILE_STATS_DESC= Enables logfile stats
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MRFC_RECURSION}
-CONFIGURE_ARGS+= --enable-rfc-recursion
-.endif
-
-.if ${PORT_OPTIONS:MLOGFILE_STATS}
-CONFIGURE_ARGS+= --enable-logfile-stats
-.endif
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+= --enable-debug
-.endif
+RFC_RECURSION_CONFIGURE_ON= --enable-rfc-recursion
+LOGFILE_STATS_CONFIGURE_ON= --enable-logfile-stats
+DEBUG_CONFIGURE_ON= --enable-debug
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- @${FIND} ${WRKSRC}/docs -type d -name CVS | ${XARGS} ${RM} -r
-.for i in docs docs/API docs/API/doxygen docs/API/doxygen/html docs/RFC docs/qmail \
- docs/qmail/1.03 docs/qmail/1.04 docs/qmail/1.05 docs/spfqtool docs/Postfix \
- docs/Postfix/2.1.x docs/Sendmail docs/Sendmail/8.12.x docs/Sendmail/8.13.x \
- docs/Courier-MTA docs/history
- @${MKDIR} ${STAGEDIR}${DOCSDIR}/${i}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ @${FIND} ${WRKSRC}/patches -type d -name CVS | ${XARGS} ${RM} -r
+.for i in patches patches/qmail patches/qmail/1.03 patches/qmail/1.05 patches/Postfix \
+ patches/Postfix/2.1.x patches/Sendmail patches/Sendmail/8.12.x patches/Sendmail/8.13.x \
+ patches/Courier-MTA
+ @${MKDIR} ${STAGEDIR}${DATADIR}/${i}
@for f in `${FIND} ${WRKSRC}/${i} ! -type d -maxdepth 1`; do \
- ${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}/${i}; \
+ ${INSTALL_DATA} $${f} ${STAGEDIR}${DATADIR}/${i}; \
done
.endfor
-.endif
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${FIND} ${WRKSRC}/examples -type d -name CVS | ${XARGS} ${RM} -r
.for i in examples/qmail examples/qmail/control examples/Sendmail
@@ -63,14 +52,17 @@ post-install:
${INSTALL_DATA} $${f} ${STAGEDIR}${EXAMPLESDIR}/${i}; \
done
.endfor
- @${MKDIR} ${STAGEDIR}${DATADIR}
- @${FIND} ${WRKSRC}/patches -type d -name CVS | ${XARGS} ${RM} -r
-.for i in patches patches/qmail patches/qmail/1.03 patches/qmail/1.05 patches/Postfix \
- patches/Postfix/2.1.x patches/Sendmail patches/Sendmail/8.12.x patches/Sendmail/8.13.x \
- patches/Courier-MTA
- @${MKDIR} ${STAGEDIR}${DATADIR}/${i}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${FIND} ${WRKSRC}/docs -type d -name CVS | ${XARGS} ${RM} -r
+.for i in docs docs/API docs/API/doxygen docs/API/doxygen/html docs/RFC docs/qmail \
+ docs/qmail/1.03 docs/qmail/1.04 docs/qmail/1.05 docs/spfqtool docs/Postfix \
+ docs/Postfix/2.1.x docs/Sendmail docs/Sendmail/8.12.x docs/Sendmail/8.13.x \
+ docs/Courier-MTA docs/history
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/${i}
@for f in `${FIND} ${WRKSRC}/${i} ! -type d -maxdepth 1`; do \
- ${INSTALL_DATA} $${f} ${STAGEDIR}${DATADIR}/${i}; \
+ ${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}/${i}; \
done
.endfor
More information about the svn-ports-all
mailing list