aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2014-03-09 21:44:03 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2014-03-09 21:44:03 +0000
commit54f58d14b58ef7d8f7ab5bcb0822a40906bd1fa1 (patch)
tree0349791ad2ff868423e78119c0a33b920cf6efc3
parentb63a055a3a62559b18efe913fd3b6f3ca986a358 (diff)
Unbreak make index when LOCALBASE or LINUXBASE are undefined.
Approved by: maintainer (Naram Qashat <cyberbotx@cyberbotx.com>)
Notes
Notes: svn path=/head/; revision=347696
-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}