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:
bdrewery 2015-09-03 17:01:58 +00:00
parent 952f13d9ee
commit 2e1c8d943d
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