diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ruby-mpi/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net/ruby-mpi/Makefile b/net/ruby-mpi/Makefile index e468e57cdb43..976f8c78aaf3 100644 --- a/net/ruby-mpi/Makefile +++ b/net/ruby-mpi/Makefile @@ -7,7 +7,7 @@ PORTNAME= mpi PORTVERSION= 0.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net ruby MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=${PORTNAME}ruby @@ -18,12 +18,21 @@ DIST_SUBDIR= ruby MAINTAINER= ports@FreeBSD.org COMMENT= Ruby binding of MPI (Message Passing Interface) -BUILD_DEPENDS= ${LOCALBASE}/mpich/lib/libmpich.a:${PORTSDIR}/net/mpich +BUILD_DEPENDS= ${LOCALBASE}/mpich${MPICH_VER}/lib/libmpich.a:${PORTSDIR}/net/mpich${MPICH_VER} +RUN_DEPENDS= ${LOCALBASE}/mpich${MPICH_VER}/lib/libmpich.a:${PORTSDIR}/net/mpich${MPICH_VER} USE_BZIP2= yes USE_RUBY= yes HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --with-mpi-path=${LOCALBASE}/mpich +CONFIGURE_ARGS+= --with-mpi-path=${LOCALBASE}/mpich${MPICH_VER} + +.if defined(WITH_MPICH1) +USE_FORTRAN= yes +FORTRANLIBDIR2= `${DIRNAME} \`gfortran42 -print-libgcc-file-name\``/../../../ +CONFIGURE_ENV+= LDFLAGS="-L${FORTRANLIBDIR2} -lgfortran" +.else +MPICH_VER= 2 +.endif MAN1= mpi_ruby.1 MAN3= MPI_Comm.3 MPI_Exception.3 MPI_Group.3 MPI_Keyval.3 MPI_Op.3 MPI_Request.3 \ |