diff options
author | tnn <tnn> | 2008-05-26 22:05:46 +0000 |
---|---|---|
committer | tnn <tnn> | 2008-05-26 22:05:46 +0000 |
commit | c3bcd20e7af3b21e26b0a77d93fddb1a1c80148c (patch) | |
tree | a4fe9734467e4d967fe6e17b38b611c144a90efc /mk | |
parent | ea2579fc540057edcb28b425235f0eac01b04cec (diff) | |
download | pkgsrc-c3bcd20e7af3b21e26b0a77d93fddb1a1c80148c.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')
-rw-r--r-- | mk/misc/can-be-built-here.mk | 14 |
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}"." |