aboutsummaryrefslogtreecommitdiff
path: root/net/ruby-mpi
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-08-05 19:01:59 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-08-05 19:01:59 +0000
commit2462e274bdb67639adeea9682cb0fa4e27172d94 (patch)
tree2a22c7a21b64afe74b97298103ca8ccd6e306987 /net/ruby-mpi
parent4f04e40a24ea39052565320ebeb68dd549b4fa0a (diff)
downloadports-2462e274bdb67639adeea9682cb0fa4e27172d94.tar.gz
ports-2462e274bdb67639adeea9682cb0fa4e27172d94.zip
Notes
Diffstat (limited to 'net/ruby-mpi')
-rw-r--r--net/ruby-mpi/Makefile15
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 \