Avoid sub-shell for realpath(1) for bmake by using its built-in :tA.

MFC after:	2 weeks
Approved by:	portmgr (implicit)
This commit is contained in:
Bryan Drewery 2015-09-03 17:01:58 +00:00
parent 420abfcecd
commit 880c41ba36
2 changed files with 8 additions and 0 deletions

View File

@ -10,8 +10,12 @@ _PORTSDIR= ${.CURDIR}/${RELPATH}
.endif
.endfor
_PORTSDIR?= /usr/ports
.if defined(.PARSEDIR)
PORTSDIR= ${_PORTSDIR:tA}
.else # fmake doesn't have :tA
PORTSDIR!= realpath ${_PORTSDIR}
.endif
.endif
BSDPORTMK?= ${PORTSDIR}/Mk/bsd.port.mk

View File

@ -10,8 +10,12 @@ _PORTSDIR= ${.CURDIR}/${RELPATH}
.endif
.endfor
_PORTSDIR?= /usr/ports
.if defined(.PARSEDIR)
PORTSDIR= ${_PORTSDIR:tA}
.else # fmake doesn't have :tA
PORTSDIR!= realpath ${_PORTSDIR}
.endif
.endif
BSDPORTSUBDIRMK?= ${PORTSDIR}/Mk/bsd.port.subdir.mk