summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-11-17 00:25:16 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-11-17 00:25:16 +0000
commite6b8020cfab3cca66beedaa215fe2098981834b5 (patch)
treec1656677dbaf53d54a2e87d836609d01cf69bc3f /Mk/bsd.port.mk
parentWe have no WRKDIR. Say so. (diff)
Add support for NO_WRKDIR.
Notes
Notes: svn path=/head/; revision=391
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 3996a6b5f788..cea2a85d1eae 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.67 1994/11/16 23:14:22 jmz Exp $
+# $Id: bsd.port.mk,v 1.68 1994/11/17 00:18:28 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -49,6 +49,8 @@
# NO_PACKAGE - Use a dummy (do-nothing) package target.
# NO_INSTALL - Use a dummy (do-nothing) install target.
# NO_WRKSUBDIR - Assume port unpacks directly into ${WRKDIR}.
+# NO_WRKDIR - There's no work directory at all; port does this someplace
+# else.
# NO_DEPENDS - Don't verify build of dependencies.
# USE_GMAKE - Says that the port uses gmake.
# USE_IMAKE - Says that the port uses imake.
@@ -97,7 +99,11 @@ PORTSDIR?= ${DESTDIR}/usr/ports
PREFIX?= /usr/local
DISTDIR?= ${PORTSDIR}/distfiles
PACKAGES?= ${PORTSDIR}/packages
+.if !defined(NO_WRKDIR)
WRKDIR?= ${.CURDIR}/work
+.else
+WRKDIR?= ${.CURDIR}
+.endif
.if defined(NO_WRKSUBDIR)
WRKSRC?= ${WRKDIR}
.else