- 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)
This commit is contained in:
Thierry Thomas 2007-08-05 19:01:59 +00:00
parent 4f04e40a24
commit 2462e274bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197124

View file

@ -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 \