diff options
author | pawel <pawel@FreeBSD.org> | 2014-03-20 21:15:50 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-03-20 21:15:50 +0800 |
commit | 6a00488c4a454b18ea26d15d561415b9b8b70c8c (patch) | |
tree | 5653e950689f604423f59cb43cb1d30204fe33b9 /benchmarks | |
parent | 8aa2e3641f2cbd878ca83f09d8e2adc9995ba6fa (diff) | |
download | freebsd-ports-gnome-6a00488c4a454b18ea26d15d561415b9b8b70c8c.tar.gz freebsd-ports-gnome-6a00488c4a454b18ea26d15d561415b9b8b70c8c.tar.zst freebsd-ports-gnome-6a00488c4a454b18ea26d15d561415b9b8b70c8c.zip |
- Convert to new options framework
- Support staging
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/imb/Makefile | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/benchmarks/imb/Makefile b/benchmarks/imb/Makefile index 1ea89efa75cd..fbed46e33f73 100644 --- a/benchmarks/imb/Makefile +++ b/benchmarks/imb/Makefile @@ -24,22 +24,18 @@ ALL_TARGET= all # _really_ want it. CFLAGS= -O3 +MAKE_JOBS_UNSAFE=yes + +OPTIONS_DEFINE= CHECK_RESULTS DOCS OPENMPI + # Attention: -DCHECK results are not valid as real benchmark data! Don't # forget to deactivate DCHECK and recompile in order to get proper results. -.if defined(CHECK_RESULTS) -CFLAGS+= -DCHECK -.endif +CHECK_RESULTS_DESC= Check results (not valid as real benchmark data) +CHECK_RESULTS_CFLAGS= -DCHECK -MAKE_JOBS_UNSAFE=yes - -NO_STAGE= yes .include <bsd.port.pre.mk> -.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun) -WITH_OPENMPI= yes -.endif - -.if defined(WITH_OPENMPI) +.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 @@ -50,14 +46,12 @@ MAKE_ENV+= MPI_HOME=${LOCALBASE} .endif do-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKDIR}/IMB_3.0/doc/IMB_ug-3.0.pdf ${DOCSDIR} - ${INSTALL_MAN} ${WRKDIR}/IMB_3.0/license/license.txt ${DOCSDIR} - ${INSTALL_MAN} ${WRKDIR}/IMB_3.0/license/use-of-trademark-license.txt ${DOCSDIR} -.endif - ${INSTALL_PROGRAM} ${WRKSRC}/IMB-EXT ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/IMB-IO ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/IMB-MPI1 ${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKDIR}/IMB_3.0/doc/IMB_ug-3.0.pdf ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKDIR}/IMB_3.0/license/license.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKDIR}/IMB_3.0/license/use-of-trademark-license.txt \ + ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_PROGRAM} IMB-EXT IMB-IO IMB-MPI1 \ + ${STAGEDIR}${PREFIX}/bin) .include <bsd.port.post.mk> |