Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 05/17/2004 04:44:44
Module Name:	pkgsrc
Committed By:	jlam
Date:		Mon May 17 04:44:44 UTC 2004

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

Log Message:
Add a new package-settable variable, INSTALLATION_PREFIX, as discussed
with gavan@NetBSD.org at pkgsrcCon.

Within the pkgsrc infrastructure, LOCALBASE has two different meanings:

    (1) where the package being built should be installed, and
    (2) where to find previously installed packages.

Most instances of case (2) should be converted to use EVAL_PREFIX,
but there are some cases where this is impossible.  To resolve this,
we preserve LOCALBASE to mean (2) and we create a new variable
INSTALLATION_PREFIX to mean (1).

INSTALLATION_PREFIX is meant to be set some time before bsd.pkg.mk is
included, and provides the value for PREFIX if it's defined, e.g.

	NO_MTREE=               yes
	INSTALLATION_PREFIX=    /

	.include "../../mk/bsd.pkg.mk"

This allows us to remove all cases where PREFIX is explicitly set in
the package Makefile, e.g. Java VM packages, qmail, etc.


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

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