Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 06/06/2006 06:30:29
Module Name:	pkgsrc
Committed By:	jlam
Date:		Tue Jun  6 06:30:29 UTC 2006

Modified Files:
	pkgsrc/mk: bsd.pkg.mk bsd.prefs.mk
	pkgsrc/mk/extract: extract.mk
	pkgsrc/mk/tools: bsd.tools.mk replace.mk
Added Files:
	pkgsrc/mk/tools: create.mk

Log Message:
Separate out the part of bsd.tools.mk that actually created the tools
into a new file pkgsrc/mk/tools/create.mk.  This leaves bsd.tools.mk
as a file that pulls in all of the other ones.  Also move the
tools-related targets from bsd.pkg.mk into bsd.tools.mk.

The tools cookie file has been removed, as well as hooks for
{pre,do,post}-tools.  Instead, there is now only a single public target
"tools" which may be invoked.  Invoking "tools" will always cause all
of the tools in ${TOOLS_DIR} to be created.

The "tools" step has been moved and is now just after the "depends"
step and before sources are extracted.  This is the earliest place
where the "tools" step can be taken, and it allows the created tools
to be used in all steps/phases after it, starting with "extract".  As
a consequence, we should just invoke tools by their bare names in
targets, e.g. awk, sed, patch, etc., instead of with the ${VARIABLE}
names, e.g. ${AWK}, ${SED}, ${PATCH}, etc.


To generate a diff of this commit:
cvs rdiff -r1.1841 -r1.1842 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.224 -r1.225 pkgsrc/mk/bsd.prefs.mk
cvs rdiff -r1.1 -r1.2 pkgsrc/mk/extract/extract.mk
cvs rdiff -r1.34 -r1.35 pkgsrc/mk/tools/bsd.tools.mk
cvs rdiff -r0 -r1.1 pkgsrc/mk/tools/create.mk
cvs rdiff -r1.167 -r1.168 pkgsrc/mk/tools/replace.mk

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