Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 06/01/2005 17:27:22
Module Name:	pkgsrc
Committed By:	jlam
Date:		Wed Jun  1 17:27:22 UTC 2005

Modified Files:
	pkgsrc/mk: bsd.pkg.mk

Log Message:
*.makevars.mk doesn't exist until after ${WRKDIR} is created, which
doesn't happen until after the package is extracted.  Prior to
extraction, cache the variables named in MAKEVARS using MAKEFLAGS
instead.  This avoids invoking each expensive computation up to four
times before it gets cached.  For packages that include lots of
buildlink3.mk files, this saves a lot of CPU time.


To generate a diff of this commit:
cvs rdiff -r1.1683 -r1.1684 pkgsrc/mk/bsd.pkg.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.