aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--math/blacs/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/blacs/Makefile b/math/blacs/Makefile
index 59df40ba5ca4..e64916419f10 100644
--- a/math/blacs/Makefile
+++ b/math/blacs/Makefile
@@ -27,6 +27,10 @@ SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun)
+WITH_OPENMPI= yes
+.endif
+
.if defined(WITH_OPENMPI)
BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi