svn commit: r323782 - head/security/paperkey
Alexey Dokuchaev
danfe at FreeBSD.org
Sat Jul 27 12:00:25 UTC 2013
Author: danfe
Date: Sat Jul 27 12:00:24 2013
New Revision: 323782
URL: http://svnweb.freebsd.org/changeset/ports/323782
Log:
- Make the port parallel build (-jX) safe
- Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS
Reported by: pointyhat-west
Modified:
head/security/paperkey/Makefile
Modified: head/security/paperkey/Makefile
==============================================================================
--- head/security/paperkey/Makefile Sat Jul 27 11:49:20 2013 (r323781)
+++ head/security/paperkey/Makefile Sat Jul 27 12:00:24 2013 (r323782)
@@ -14,16 +14,23 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
-ALL_TARGET= all check
PLIST_FILES= bin/paperkey
MAN1= paperkey.1
PORTDOCS= NEWS README
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+# Setting ALL_TARGET to "all check" is racy and breaks parallel builds
+post-build:
+ ${MAKE} -C ${BUILD_WRKSRC} check
+
post-install:
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list