aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2014-03-10 05:44:03 +0800
committergerald <gerald@FreeBSD.org>2014-03-10 05:44:03 +0800
commit78fe17868d3594c0073fb4dff1bafa01973e5fe2 (patch)
tree0349791ad2ff868423e78119c0a33b920cf6efc3 /devel
parent0017834b0925090e3f26ebbf1fc99ac0a30c8467 (diff)
downloadfreebsd-ports-gnome-78fe17868d3594c0073fb4dff1bafa01973e5fe2.tar.gz
freebsd-ports-gnome-78fe17868d3594c0073fb4dff1bafa01973e5fe2.tar.zst
freebsd-ports-gnome-78fe17868d3594c0073fb4dff1bafa01973e5fe2.zip
Unbreak make index when LOCALBASE or LINUXBASE are undefined.
Approved by: maintainer (Naram Qashat <cyberbotx@cyberbotx.com>)
Diffstat (limited to 'devel')
-rw-r--r--devel/mingw32-binutils/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/mingw32-binutils/Makefile b/devel/mingw32-binutils/Makefile
index d3a219bbb3f5..8e8d1ce24e99 100644
--- a/devel/mingw32-binutils/Makefile
+++ b/devel/mingw32-binutils/Makefile
@@ -44,7 +44,9 @@ post-install:
add-plist-post:
@${ECHO_CMD} "@unexec ${RMDIR} -p %D/${PKGNAMEPREFIX:S/-$//}/info 2> /dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} -p %D/${PKGNAMEPREFIX:S/-$//} 2> /dev/null || true" >> ${TMPPLIST}
-.if (defined(PREFIX) && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr")
+.if (defined(PREFIX) && defined(LOCALBASE) && defined(LINUXBASE) \
+ && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} \
+ && ${PREFIX} != "/usr")
@${ECHO_CMD} "@unexec ${RMDIR} %D 2> /dev/null || true" >> ${TMPPLIST}
.else
@${DO_NADA}