diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-03-23 19:31:36 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-03-23 19:31:36 +0000 |
commit | 22dbc56c65a2ae8d89dc5ba0049404da85b3e881 (patch) | |
tree | b898388f534a6ae7ca783214acf90e87b33facd0 /Mk/bsd.port.mk | |
parent | 5ca4c5f1ba647ab19f828601418c509f8b4279ee (diff) | |
download | ports-22dbc56c65a2ae8d89dc5ba0049404da85b3e881.tar.gz ports-22dbc56c65a2ae8d89dc5ba0049404da85b3e881.zip |
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 309688f6a0ae..8156146f301f 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3843,11 +3843,12 @@ delete-package-list: delete-package-links-list _INSTALL_PKG_ARGS= -f .endif install-package: -.if exists(${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX}) - @${PKG_ADD} ${_INSTALL_PKG_ARGS} ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} -.else - @${PKG_ADD} ${_INSTALL_PKG_ARGS} ${PKGFILE} -.endif + @if [ -f "${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX}" ]; then \ + _pkgfile="${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX}"; \ + else \ + _pkgfile="${PKGFILE}"; \ + fi; \ + ${PKG_ADD} ${_INSTALL_PKG_ARGS} $${_pkgfile} .endif |