Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 01/21/2004 18:13:27
Module Name:	pkgsrc
Committed By:	jlam
Date:		Wed Jan 21 18:13:27 UTC 2004

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

Log Message:
Introduce concept of the "phase" that we're in as we progress through
fetching, extracting, configuring, building, etc. of a package.  We
can check what phase we're in by examining the value of ${PKG_PHASE}
and comparing against PHASES_AFTER_<phase>, which list phases that
are "greater than or equal to" <phase>.

One useful example of how to use PKG_PHASE is:

.if !empty(PHASES_AFTER_EXTRACT:${PKG_PHASE})
#
# Some variable settings or targets here that rely on dependencies to
# already be installed, or ${WRKDIR} to be created, etc., as these are
# things that should have happened by the time "make extract" is
# completed.
#
.endif


To generate a diff of this commit:
cvs rdiff -r1.1350 -r1.1351 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.139 -r1.140 pkgsrc/mk/bsd.prefs.mk

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