aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-12-25 20:46:14 +0800
committerbapt <bapt@FreeBSD.org>2016-12-25 20:46:14 +0800
commitf99d87f411ffb4fa28ad6a46cb5ce118a39ba946 (patch)
treeec0736641ebe66daed6945bdd8e75c9b52ebc51e /Mk/bsd.port.mk
parente733252cf584b5bb2353f66edbfcc3e963ef62a1 (diff)
downloadfreebsd-ports-gnome-f99d87f411ffb4fa28ad6a46cb5ce118a39ba946.tar.gz
freebsd-ports-gnome-f99d87f411ffb4fa28ad6a46cb5ce118a39ba946.tar.zst
freebsd-ports-gnome-f99d87f411ffb4fa28ad6a46cb5ce118a39ba946.zip
Revert r429298 it has some unexpected side effects which I do not have time to
fix yet Approved by: portmgr (implicit)
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 7bf48ee2a4cb..17e607cfef3b 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1211,7 +1211,9 @@ USE_SUBMAKE= yes
.for _CATEGORY in ${CATEGORIES}
PKGCATEGORY?= ${_CATEGORY}
.endfor
-PKGORIGIN?= ${.CURDIR:C/${PORTSDIR}\///}
+_PORTDIRNAME= ${.CURDIR:T}
+PORTDIRNAME?= ${_PORTDIRNAME}
+PKGORIGIN?= ${PKGCATEGORY}/${PORTDIRNAME}
# where 'make config' records user configuration options
PORT_DBDIR?= /var/db/ports