aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/imb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/imb')
-rw-r--r--benchmarks/imb/Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/benchmarks/imb/Makefile b/benchmarks/imb/Makefile
index 33f680ee22cf..8b9d406a31a5 100644
--- a/benchmarks/imb/Makefile
+++ b/benchmarks/imb/Makefile
@@ -32,17 +32,12 @@ OPTIONS_DEFINE= CHECK_RESULTS DOCS OPENMPI
CHECK_RESULTS_DESC= Check results (not valid as real benchmark data)
CHECK_RESULTS_CFLAGS= -DCHECK
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MOPENMPI}
-BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
-RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
-MAKE_ENV+= MPI_HOME=${LOCALBASE}/mpi/openmpi
-.else
-BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
-RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
-MAKE_ENV+= MPI_HOME=${LOCALBASE}
-.endif
+OPENMPI_BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
+OPENMPI_RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
+OPENMPI_MAKE_ENV= MPI_HOME=${LOCALBASE}/mpi/openmpi
+OPENMPI_BUILD_DEPENDS_OFF= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
+OPENMPI_RUN_DEPENDS_OFF= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
+OPENMPI_MAKE_ENV_OFF= MPI_HOME=${LOCALBASE}
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -53,4 +48,4 @@ do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} IMB-EXT IMB-IO IMB-MPI1 \
${STAGEDIR}${PREFIX}/bin)
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>