summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorwulf <wulf@pkgsrc.org>2001-10-26 15:08:43 +0000
committerwulf <wulf@pkgsrc.org>2001-10-26 15:08:43 +0000
commit967aaf280f4e7b33c12299b99e5333c67b880555 (patch)
tree783371d38ff3f16928b31bb11ed1b3354fd1e35f /mk
parent42f4f968e128751ca187b0ce446fe1821dd6d503 (diff)
downloadpkgsrc-967aaf280f4e7b33c12299b99e5333c67b880555.tar.gz
Changed PKGDIR assignment to allow migration of files currently held in
${.CURDIR}/pkg directory to the toplevel of the package. It remains backward compatible with the existing system allowing a progressive transision process. The long term goal is a reduction of overheads and processing time when working with the cvs tree.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 151489d979f..dd157e3894d 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.832 2001/10/26 14:09:59 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.833 2001/10/26 15:08:43 wulf Exp $
#
# This file is in the public domain.
#
@@ -58,7 +58,11 @@ TEMPLATES?= ${PKGSRCDIR}/templates
PATCHDIR?= ${.CURDIR}/patches
SCRIPTDIR?= ${.CURDIR}/scripts
FILESDIR?= ${.CURDIR}/files
-PKGDIR?= ${.CURDIR}/pkg
+.if exists(${.CURDIR}/pkg)
+PKGDIR?= ${.CURDIR}/pkg
+.else
+PKGDIR?= ${.CURDIR}
+.endif
.if defined(USE_JAVA)
BUILD_DEFS+= PKG_JVM JAVA_HOME