svn commit: r397763 - head/net/packetdrill
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Sep 24 21:19:29 UTC 2015
Author: amdmi3
Date: Thu Sep 24 21:19:28 2015
New Revision: 397763
URL: https://svnweb.freebsd.org/changeset/ports/397763
Log:
- Switch to options helpers
- No need to add DOCS and EXAMPLES to OPTIONS_DEFAULT
Approved by: portmgr blanket
Modified:
head/net/packetdrill/Makefile
Modified: head/net/packetdrill/Makefile
==============================================================================
--- head/net/packetdrill/Makefile Thu Sep 24 21:19:27 2015 (r397762)
+++ head/net/packetdrill/Makefile Thu Sep 24 21:19:28 2015 (r397763)
@@ -17,9 +17,6 @@ PORTDOCS= README
PORTEXAMPLES= tests
OPTIONS_DEFINE= DOCS EXAMPLES
-OPTIONS_DEFAULT=DOCS EXAMPLES
-
-.include <bsd.port.options.mk>
do-configure:
${PRINTF} "%s\n" "#include <stdio.h>" "int main(void) {" \
@@ -43,14 +40,14 @@ post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${PORTDATA} \
${STAGEDIR}${DATADIR}
-.if ${PORT_OPTIONS:MEXAMPLES}
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTEXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
-.endif
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list