summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-01 12:21:56 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-01 12:21:56 +0000
commit4db0539a2bd0689f521ac871ccefd5a3bff42f10 (patch)
tree9fe145cee3507ebe366fe2bc62ee1993804afb46 /mk/bsd.prefs.mk
parentfef80803fdf10463ef12267c959e863662ebebc8 (diff)
downloadpkgsrc-4db0539a2bd0689f521ac871ccefd5a3bff42f10.tar.gz
Define PKGPATH earlier so that mk.conf can use it.
Requested by David Brownlee on tech-pkg.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 727c0c4ade3..722046ed736 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.258 2007/07/30 14:10:36 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.259 2007/08/01 12:21:56 joerg Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -251,6 +251,9 @@ MAKE_ENV+= USETOOLS=no
OBJECT_FMT?= Mach-O
.endif
+# Provide PKGPATH early on so that mk.conf can use it.
+PKGPATH?= ${.CURDIR:C|.*/([^/]*/[^/]*)$|\1|}
+
# Load the settings from MAKECONF, which is /etc/mk.conf by default.
.include <bsd.own.mk>
@@ -518,7 +521,6 @@ USE_TOOLS+= awk:pkgsrc cut:pkgsrc echo:pkgsrc pwd:pkgsrc \
.include "${_PKGSRC_TOPDIR}/mk/tools/defaults.mk"
-PKGPATH?= ${.CURDIR:C|.*/([^/]*/[^/]*)$|\1|}
.if !defined(_PKGSRCDIR)
_PKGSRCDIR!= cd ${_PKGSRC_TOPDIR} && ${PWD_CMD}
MAKEFLAGS+= _PKGSRCDIR=${_PKGSRCDIR:Q}