Subject: Re: CVS commit: pkgsrc/mk
To: Johnny C. Lam <jlam@netbsd.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 01/21/2004 20:30:35
On Wed, Jan 21, 2004 at 06:13:27PM +0000, Johnny C. Lam wrote:
> 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

What does this fix? In particular, this sounds like something normal
Makefile dependencies should be able to handle.

Cheers,
 Thomas