summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 9bd11119bae..7762115d20d 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.247 1999/04/06 14:11:10 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.248 1999/04/08 07:51:21 hubertf Exp $
#
# This file is in the public domain.
#
@@ -100,7 +100,7 @@ LOCALBASE?= ${DESTDIR}/usr/local
X11BASE?= ${DESTDIR}/usr/X11R6
CROSSBASE?= ${LOCALBASE}/cross
-PKGSRCDIR= ${.CURDIR}/../..
+PKGSRCDIR= ${.CURDIR:C|/[^/]*/[^/]*$||}
DISTDIR?= ${PKGSRCDIR}/distfiles
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
PACKAGES?= ${PKGSRCDIR}/packages