diff options
author | joerg <joerg@pkgsrc.org> | 2009-03-20 19:23:50 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-03-20 19:23:50 +0000 |
commit | 2d1ba244e90207d03eef397a99aa4091baeec5b3 (patch) | |
tree | 647e974495c5d41703d41ca2e71c9b6063b9153a /mk/defaults/mk.conf | |
parent | 4bf0a20854ae9e07b7965977a713f2efee890976 (diff) | |
download | pkgsrc-2d1ba244e90207d03eef397a99aa4091baeec5b3.tar.gz |
Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
Diffstat (limited to 'mk/defaults/mk.conf')
-rw-r--r-- | mk/defaults/mk.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf index 25684949d42..dce0b36a14a 100644 --- a/mk/defaults/mk.conf +++ b/mk/defaults/mk.conf @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf,v 1.183 2009/03/08 15:27:59 tron Exp $ +# $NetBSD: mk.conf,v 1.184 2009/03/20 19:25:01 joerg Exp $ # # This file provides default values for variables that may be overridden @@ -218,7 +218,7 @@ PREFER_NATIVE?= yes # When building packages, whether to prefer the pkgsrc or native # versions of software that's also part of the base system. Its value # can be either yes/no, or a list of packages as named in the -# BUILDLINK_PACKAGES line in a package's buildlink3.mk file. +# BUILDLINK_TREE line in a package's buildlink3.mk file. # Preferences are determined by the most specific instance of the # package in either PREFER_PKGSRC or PREFER_NATIVE. If a package is # specified in neither or in both variables, then PREFER_PKGSRC has |