diff options
author | thierry <thierry@FreeBSD.org> | 2007-08-06 03:01:59 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2007-08-06 03:01:59 +0800 |
commit | 7f1620fdcee5b230e0703a88f9b9849f9ccea493 (patch) | |
tree | 6e6740d2856c2df3e000ee5e73e7bb758952b3b2 /net/ruby-mpi/Makefile | |
parent | e8cc5c1a12c1a608356c1c1641c3e9148c31f1c5 (diff) | |
download | freebsd-ports-gnome-7f1620fdcee5b230e0703a88f9b9849f9ccea493.tar.gz freebsd-ports-gnome-7f1620fdcee5b230e0703a88f9b9849f9ccea493.tar.zst freebsd-ports-gnome-7f1620fdcee5b230e0703a88f9b9849f9ccea493.zip |
- Link with gfortran to fix the build with MPICH; (1)
- Use MPICH2 unless WITH_MPICH1 is set;
- Add a missing RUN_DEPENDS for mpirun.
Reported by: pointyhat via Pav (1)
Diffstat (limited to 'net/ruby-mpi/Makefile')
-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 \ |