aboutsummaryrefslogtreecommitdiff
path: root/net/mpich2
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2000-04-02 04:26:02 +0000
committerMichael Haro <mharo@FreeBSD.org>2000-04-02 04:26:02 +0000
commit28b70c3cc17827bd71fb0ef2339d18f96b0b1f6c (patch)
treee27e5b4a99503f49d077c2e2ed474e35ca8e4fec /net/mpich2
parent1ae00513ccb1a1e3a79eb3b836e522c8ac9af484 (diff)
downloadports-28b70c3cc17827bd71fb0ef2339d18f96b0b1f6c.tar.gz
ports-28b70c3cc17827bd71fb0ef2339d18f96b0b1f6c.zip
Notes
Diffstat (limited to 'net/mpich2')
-rw-r--r--net/mpich2/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/net/mpich2/Makefile b/net/mpich2/Makefile
index 1c65b3c88cb9..ccf88df7c6d5 100644
--- a/net/mpich2/Makefile
+++ b/net/mpich2/Makefile
@@ -20,14 +20,20 @@ DIST_SUBDIR= mpich
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -cflags="${CFLAGS}" -prefix=${PREFIX}/mpich
+.include <bsd.port.pre.mk>
+
# Include support for ssh client
USE_SSH?= YES
# Use ssh instead of rsh
-.if defined(USE_SSH) && ${USE_SSH} == YES || \
- exists(${PREFIX}/bin/ssh) && \
+.if ${OSVERSION} >= 400016 && \
+ exists(/usr/bin/ssh) && \
+ (!defined(USE_SSH) || ${USE_SSH} != NO)
+CONFIGURE_ARGS+= -rsh="/usr/bin/ssh"
+.elif defined(USE_SSH) && ${USE_SSH} == YES || \
+ exists(${LOCALBASE}/bin/ssh) && \
(!defined(USE_SSH) || ${USE_SSH} != NO)
RUN_DEPENDS+= ssh:${PORTSDIR}/security/ssh
-CONFIGURE_ARGS+= -rsh="${PREFIX}/bin/ssh"
+CONFIGURE_ARGS+= -rsh="${LOCALBASE}/bin/ssh"
.endif
ALL_TARGET=
@@ -178,4 +184,4 @@ MAN4= CLOG_Finalize.4 CLOG_Init.4 CLOG_Output.4 CLOG_commtype.4 \
MPE_TagsEnd.4 MPE_Update.4
INSTALL_TARGET= install
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>