summaryrefslogtreecommitdiff
path: root/mk/misc
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-05-26 22:05:46 +0000
committertnn <tnn@pkgsrc.org>2008-05-26 22:05:46 +0000
commitdc868fa9b526fb4ddeb33cc95ad19b58ff6573a9 (patch)
treea4fe9734467e4d967fe6e17b38b611c144a90efc /mk/misc
parented17658cacdff4197ddc8065cdd9fd1c7938e6e7 (diff)
downloadpkgsrc-dc868fa9b526fb4ddeb33cc95ad19b58ff6573a9.tar.gz
Add support for NOT_FOR_BULK_PLATFORM, which works similar
to NOT_FOR_PLATFORM, but only active when BATCH is defined. Can be used to mark packages that are known to stall the bulk builds on certain platforms.
Diffstat (limited to 'mk/misc')
-rw-r--r--mk/misc/can-be-built-here.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/misc/can-be-built-here.mk b/mk/misc/can-be-built-here.mk
index 9899f8554c5..ece5696abc3 100644
--- a/mk/misc/can-be-built-here.mk
+++ b/mk/misc/can-be-built-here.mk
@@ -1,10 +1,11 @@
-# $NetBSD: can-be-built-here.mk,v 1.4 2007/02/10 09:01:05 rillig Exp $
+# $NetBSD: can-be-built-here.mk,v 1.5 2008/05/26 22:05:46 tnn Exp $
#
# This file checks whether a package can be built in the current pkgsrc
# environment. It checks the following variables:
#
# * NOT_FOR_COMPILER, ONLY_FOR_COMPILER
# * NOT_FOR_PLATFORM, ONLY_FOR_PLATFORM
+# * NOT_FOR_BULK_PLATFORM
# * NOT_FOR_UNPRIVILEGED, ONLY_FOR_UNPRIVILEGED
# * PKG_FAIL_REASON, PKG_SKIP_REASON
#
@@ -63,6 +64,17 @@ _CBBH.nplat= no
. endif
.endfor
+# Check NOT_FOR_BULK_PLATFORM
+_CBBH_CHECKS+= nbplat
+_CBBH_MSGS.nbplat= "This package is known to stall the bulk build on these platforms: "${NOT_FOR_BULK_PLATFORM:Q}"."
+
+_CBBH.nbplat= yes
+.for p in ${NOT_FOR_BULK_PLATFORM}
+. if defined(BATCH) && !empty(MACHINE_PLATFORM:M${p})
+_CBBH.nbplat= no
+. endif
+.endfor
+
# Check ONLY_FOR_PLATFORM
_CBBH_CHECKS+= oplat
_CBBH_MSGS.oplat= "This package is only available for these platforms: "${ONLY_FOR_PLATFORM:Q}"."