diff options
author | oliver <oliver@FreeBSD.org> | 2009-01-24 16:29:47 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2009-01-24 16:29:47 +0800 |
commit | 0be5153333a0969c6b6f2e07bfa570429696dc5d (patch) | |
tree | 684b6922fe30a1c865f7ab87524b79bad0702386 | |
parent | 27722dd7c985009223b9af81f3450973b7937166 (diff) | |
download | freebsd-ports-gnome-0be5153333a0969c6b6f2e07bfa570429696dc5d.tar.gz freebsd-ports-gnome-0be5153333a0969c6b6f2e07bfa570429696dc5d.tar.zst freebsd-ports-gnome-0be5153333a0969c6b6f2e07bfa570429696dc5d.zip |
reactivate mpich - but mpich2 this time
-rw-r--r-- | benchmarks/hpl/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/benchmarks/hpl/Makefile b/benchmarks/hpl/Makefile index 1124bc68a062..3bf0e1a0d638 100644 --- a/benchmarks/hpl/Makefile +++ b/benchmarks/hpl/Makefile @@ -1,4 +1,4 @@ -# New ports collection makefile for: physfs +# New ports collection makefile for: hpl # Date Created: 22 February 2003 # Whom: Oliver Lehmann <oliver@FreeBSD.org> # @@ -7,16 +7,20 @@ PORTNAME= hpl PORTVERSION= 2.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= benchmarks MASTER_SITES= http://www.netlib.org/benchmark/hpl/ MAINTAINER= oliver@FreeBSD.org COMMENT= High Performance Computing Linpack Benchmark +.if !defined(WITH_LAM) +BUILD_DEPENDS= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2 +.else BUILD_DEPENDS= ${LOCALBASE}/bin/lamd:${PORTSDIR}/net/lam CC= ${LOCALBASE}/bin/mpicc FC= ${LOCALBASE}/bin/mpicc +.endif RUN_DEPENDS= ${BUILD_DEPENDS} USE_FORTRAN= yes @@ -71,18 +75,24 @@ MAN3= HPL_abort.3 HPL_all_reduce.3 HPL_barrier.3 HPL_bcast.3 \ post-patch: @${REINPLACE_CMD} -e 's|^TOPdir[ ]*=.*$$|TOPdir = ${WRKSRC}| ; \ - s|^MPdir[ ]*=.*$$|MPdir = ${LOCALBASE}/mpich| ; \ + s|^MPdir[ ]*=.*$$|MPdir = ${LOCALBASE}/mpich2| ; \ s|^LAdir[ ]*=.*$$|LAdir = ${LOCALBASE}/lib| ; \ s|^CC[ ]*=.*$$|CC = ${CC}| ; \ s|^CCFLAGS[ ]*=.*$$|CCFLAGS = $$\(HPL_DEFS\) ${CFLAGS} -fomit-frame-pointer -funroll-loops| ; \ s|^LINKER[ ]*=.*$$|LINKER = ${FC}| ; \ s|^ARCHIVER[ ]*=.*$$|ARCHIVER = ${AR}| ; \ - s|ARCH[ )]|_&|g' \ + s|ARCH[ )]|_&|g ; \ + s|libpmpich|libmpich|g' \ ${WRKSRC}/setup/Make.${HPL_ARCH} +.if defined(WITH_LAM) @${REINPLACE_CMD} -e 's|^MPdir[ ]*=.*$$|#&| ; s|^MPinc[ ]*=.*$$|#&| ; \ s|^MPlib[ ]*=.*$$|MPlib = /usr/lib/libg2c.a|' \ ${WRKSRC}/setup/Make.${HPL_ARCH} +.else + @${REINPLACE_CMD} -e 's|^MPdir[ ]*=.*$$|MPdir = ${LOCALBASE}/mpich2|' \ + ${WRKSRC}/setup/Make.${HPL_ARCH} +.endif .if defined(WITH_BLAS) @${REINPLACE_CMD} -e 's|^HPL_OPTS[ ]*=.*$$|HPL_OPTS =| ; \ |