aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-07-27 20:00:24 +0800
committerdanfe <danfe@FreeBSD.org>2013-07-27 20:00:24 +0800
commit1b7c7b47980c5fb0e3a02fe558875fbdd543580c (patch)
tree00f015dfed14fd8432da16aedd5a282eb8707aec /security
parent0d0f3ad03b0bc7541b67ffbb4308083fcffbd6d4 (diff)
downloadfreebsd-ports-gnome-1b7c7b47980c5fb0e3a02fe558875fbdd543580c.tar.gz
freebsd-ports-gnome-1b7c7b47980c5fb0e3a02fe558875fbdd543580c.tar.zst
freebsd-ports-gnome-1b7c7b47980c5fb0e3a02fe558875fbdd543580c.zip
- Make the port parallel build (-jX) safe
- Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS Reported by: pointyhat-west
Diffstat (limited to 'security')
-rw-r--r--security/paperkey/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/security/paperkey/Makefile b/security/paperkey/Makefile
index f8a39cdfad0c..622bad68e8ba 100644
--- a/security/paperkey/Makefile
+++ b/security/paperkey/Makefile
@@ -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>