summaryrefslogtreecommitdiff
path: root/mk/buildlink3
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2005-05-24 15:41:05 +0000
committerxtraeme <xtraeme>2005-05-24 15:41:05 +0000
commit499fd8fa0fdb30a6a3137e08ff667be2d5808a2e (patch)
tree5e5526e24c9ad5591ff01ec92b6547c490e4d655 /mk/buildlink3
parent6f992ebce3d76c6ea2dee072c3ead0ccb9656af6 (diff)
downloadpkgsrc-499fd8fa0fdb30a6a3137e08ff667be2d5808a2e.tar.gz
Add BUILTIN_PACKAGES, this will contain all builtin dependencies used
in packages, e.g on my NetBSD system: $ cd pkgsrc/graphics/gimp && make show-var VARNAME=BUILTIN_PACKAGES bzip2 heimdal openssl db1 gettext iconv zlib pthread $ Ok'ed by jlam.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r--mk/buildlink3/bsd.builtin.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.builtin.mk b/mk/buildlink3/bsd.builtin.mk
index 2f4cab08b00..f0144b1f81e 100644
--- a/mk/buildlink3/bsd.builtin.mk
+++ b/mk/buildlink3/bsd.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.builtin.mk,v 1.3 2004/11/10 17:39:03 jlam Exp $
+# $NetBSD: bsd.builtin.mk,v 1.4 2005/05/24 15:41:05 xtraeme Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -144,6 +144,15 @@ BUILDLINK_BUILTIN_MK.${_pkg_}?= ${BUILDLINK_PKGSRCDIR.${_pkg_}}/builtin.mk
# is here to set the default for any package added to BUILDLINK_PACKAGES
# by any of the above code.
#
+# BUILTIN_PACKAGES will contain the list of all builtin
+# dependencies used in packages.
+#
+
.for _pkg_ in ${BUILDLINK_PACKAGES}
USE_BUILTIN.${_pkg_}?= no
+BUILTIN_PACKAGES?= # empty
+. if !empty(USE_BUILTIN.${_pkg_}:M[Yy][Ee][Ss])
+BUILTIN_PACKAGES+= ${_pkg_}
+. endif
.endfor
+