summaryrefslogtreecommitdiffstats
path: root/net/mpich2
diff options
context:
space:
mode:
Diffstat (limited to 'net/mpich2')
-rw-r--r--net/mpich2/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/net/mpich2/Makefile b/net/mpich2/Makefile
index 1bfff6f..0795419 100644
--- a/net/mpich2/Makefile
+++ b/net/mpich2/Makefile
@@ -22,19 +22,16 @@ CONFIGURE_ARGS= -cflags="${CFLAGS}" -prefix=${PREFIX}/mpich
.include <bsd.port.pre.mk>
-# Include support for ssh client
-USE_SSH?= YES
+# To disable ssh client support, build with WITHOUT_SSH set.
# Use ssh instead of rsh
-.if ${OSVERSION} >= 400016 && \
- exists(/usr/bin/ssh) && \
- (!defined(USE_SSH) || ${USE_SSH} != NO)
+.if !defined(WITHOUT_SSH)
+.if ${OSVERSION} >= 400016 && exists(/usr/bin/ssh)
CONFIGURE_ARGS+= -rsh="/usr/bin/ssh"
-.elif defined(USE_SSH) && ${USE_SSH} == YES || \
- exists(${LOCALBASE}/bin/ssh) && \
- (!defined(USE_SSH) || ${USE_SSH} != NO)
+.elif defined(WITH_SSH) || exists(${LOCALBASE}/bin/ssh)
RUN_DEPENDS+= ssh:${PORTSDIR}/security/ssh
CONFIGURE_ARGS+= -rsh="${LOCALBASE}/bin/ssh"
.endif
+.endif
ALL_TARGET=
MANPREFIX= ${PREFIX}/mpich
OpenPOWER on IntegriCloud