summaryrefslogtreecommitdiff
path: root/mk/misc/can-be-built-here.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-10 09:01:05 +0000
committerrillig <rillig@pkgsrc.org>2007-02-10 09:01:05 +0000
commit120563618652a96414294489b3399e8756b5b654 (patch)
tree4a29e1067bdbe84baccb670c1457861f4ca83bbe /mk/misc/can-be-built-here.mk
parentf6a8043bf55ad177022fb9d7be1269c73c8638d0 (diff)
downloadpkgsrc-120563618652a96414294489b3399e8756b5b654.tar.gz
Added a check for PKG_INSTALLATION_TYPES.
Diffstat (limited to 'mk/misc/can-be-built-here.mk')
-rw-r--r--mk/misc/can-be-built-here.mk21
1 files changed, 15 insertions, 6 deletions
diff --git a/mk/misc/can-be-built-here.mk b/mk/misc/can-be-built-here.mk
index 15e5193ffa5..9899f8554c5 100644
--- a/mk/misc/can-be-built-here.mk
+++ b/mk/misc/can-be-built-here.mk
@@ -1,4 +1,4 @@
-# $NetBSD: can-be-built-here.mk,v 1.3 2006/12/03 21:58:20 rillig Exp $
+# $NetBSD: can-be-built-here.mk,v 1.4 2007/02/10 09:01:05 rillig Exp $
#
# This file checks whether a package can be built in the current pkgsrc
# environment. It checks the following variables:
@@ -117,6 +117,17 @@ _CBBH.skip= yes
_CBBH.skip= no
.endif
+# Check PKG_INSTALLATION_TYPES
+_CBBH_CHECKS+= pkgviews
+_CBBH_MSGS.pkgviews= "This package is not available for pkgviews."
+
+_CBBH.pkgviews= yes
+.if ${PKG_INSTALLATION_PREFS} == "pkgviews overwrite"
+. if empty(PKG_INSTALLATION_TYPES:Mpkgviews)
+_CBBH.pkgviews= no
+. endif
+.endif
+
# Collect and combine the results
_CBBH= yes
_CBBH_MSGS= # none
@@ -140,9 +151,7 @@ _cbbh:
@${FALSE}
.if !defined(NO_SKIP) && ${_CBBH} == "no"
-# FIXME: check-vulnerable is only used here because it is depended
-# upon by each of the "main" pkgsrc targets. Probably its name should be
-# generalized, and both check-vulnerable and _cbbh should depend
-# on the generalized target.
-check-vulnerable: _cbbh
+# XXX: bootstrap-depends is only used here because it is depended
+# upon by each of the "main" pkgsrc targets.
+bootstrap-depends: _cbbh
.endif