aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-02-01 04:59:30 +0800
committerobrien <obrien@FreeBSD.org>1998-02-01 04:59:30 +0800
commitf4177760d57799c4b619db1975f480f12f79d3c0 (patch)
treefd75815f7c454940601033b587a9c87c229d7373 /Mk/bsd.port.mk
parent44253c75960fb02f83bb7a1661ae90e142f536dc (diff)
downloadfreebsd-ports-gnome-f4177760d57799c4b619db1975f480f12f79d3c0.tar.gz
freebsd-ports-gnome-f4177760d57799c4b619db1975f480f12f79d3c0.tar.zst
freebsd-ports-gnome-f4177760d57799c4b619db1975f480f12f79d3c0.zip
Allow package building in current directory again.
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 2fae7aa64166..ac153cfd92ef 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $Id: bsd.port.mk,v 1.267 1997/11/20 05:33:56 asami Exp $
+# $Id: bsd.port.mk,v 1.268 1998/01/02 10:37:14 asami Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -675,7 +675,11 @@ MAINTAINER?= ports@FreeBSD.ORG
# shouldn't match "[a-z]*"), see the target "delete-package-links" below.
PKGREPOSITORYSUBDIR?= All
PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR}
+.if exists(${PACKAGES})
PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
+.else
+PKGFILE?= ${.CURDIR}/${PKGNAME}${PKG_SUFX}
+.endif
# The "latest version" link -- ${PKGNAME} minus everthing after the last '-'
PKGLATESTREPOSITORY?= ${PACKAGES}/Latest
@@ -1151,7 +1155,7 @@ _PORT_USE: .USE
.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER)
@if [ -d ${PKG_DBDIR}/${PKGNAME} ]; then \
${ECHO_MSG} "===> ${PKGNAME} is already installed - perhaps an older version?"; \
- ${ECHO_MSG} " If so, you may wish to \`\`pkg_delete ${PKGNAME}'' and install"; \
+ ${ECHO_MSG} " If so, you may wish to \`\`make deinstall'' and install"; \
${ECHO_MSG} " this port again by \`\`make reinstall'' to upgrade it properly."; \
${ECHO_MSG} " If you really wish to overwrite the old port of ${PKGNAME}"; \
${ECHO_MSG} " without deleting it first, set the variable \"FORCE_PKG_REGISTER\""; \