summaryrefslogtreecommitdiff
path: root/parallel
diff options
context:
space:
mode:
authormanu <manu>2013-07-19 03:52:29 +0000
committermanu <manu>2013-07-19 03:52:29 +0000
commit5fedf48a26f17aae99b5993a4a33c711eb1bb4d5 (patch)
tree2dbf88042780b024a33397983f3958318071bff0 /parallel
parent0cc78b2fc14d43e21471cf8e7b2c84a56e24585a (diff)
downloadpkgsrc-5fedf48a26f17aae99b5993a4a33c711eb1bb4d5.tar.gz
Add f90 option for fortran90 bindings
Diffstat (limited to 'parallel')
-rw-r--r--parallel/openmpi/Makefile3
-rw-r--r--parallel/openmpi/PLIST.f902
-rw-r--r--parallel/openmpi/options.mk24
3 files changed, 25 insertions, 4 deletions
diff --git a/parallel/openmpi/Makefile b/parallel/openmpi/Makefile
index a467d44f206..5a1282fb360 100644
--- a/parallel/openmpi/Makefile
+++ b/parallel/openmpi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2013/05/31 12:41:45 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2013/07/19 03:52:29 manu Exp $
DISTNAME= openmpi-1.6.4
PKGREVISION= 1
@@ -20,7 +20,6 @@ LIBTOOL_OVERRIDE= ${WRKSRC}/libtool \
SHLIBTOOL_OVERRIDE= ${WRKSRC}/config/libtool.m4 \
${WRKSRC}/opal/libltdl/m4/libtool.m4
-CONFIGURE_ARGS+= --disable-mpi-f90
CONFIGURE_ARGS+= --without-sge
CONFIGURE_ARGS+= --without-slurm
CONFIGURE_ARGS+= --enable-contrib-no-build=vt # in separate package
diff --git a/parallel/openmpi/PLIST.f90 b/parallel/openmpi/PLIST.f90
new file mode 100644
index 00000000000..d24edacbfd1
--- /dev/null
+++ b/parallel/openmpi/PLIST.f90
@@ -0,0 +1,2 @@
+lib/libmpi_f90.la
+lib/mpi.mod
diff --git a/parallel/openmpi/options.mk b/parallel/openmpi/options.mk
index 8acf3d9b5c9..9d78d5a2321 100644
--- a/parallel/openmpi/options.mk
+++ b/parallel/openmpi/options.mk
@@ -1,10 +1,30 @@
-# $NetBSD: options.mk,v 1.4 2012/10/17 23:27:34 asau Exp $
+# $NetBSD: options.mk,v 1.5 2013/07/19 03:52:29 manu Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openmpi
-PKG_SUPPORTED_OPTIONS= debug
+PKG_SUPPORTED_OPTIONS= debug f90
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.endif
+
+
+.if !empty(PKG_OPTIONS:Mf90)
+GCC_REQD= 4.7
+GCCDIR= ${PREFIX}/gcc47
+CONFIGURE_ARGS+= --enable-mpi-f90
+CONFIGURE_ENV+= FC=${GCCDIR}/bin/gfortran
+PLIST_SRC+= PLIST.f90
+
+SUBST_CLASSES+= f90
+SUBST_STAGE.f90= post-configure
+SUBST_FILES.f90= ompi/tools/wrappers/mpif90-wrapper-data.txt
+SUBST_SED.f90= -e 's,^compiler=.*$$,compiler=${GCCDIR}/bin/gfortran,'
+SUBST_SED.f90+= -e 's,^linker_flags=,linker_flags= -R${GCCDIR}/lib ,'
+SUBST_SED.f90+= -e 's,^linker_flags=,linker_flags= -L${GCCDIR}/lib ,'
+.else
+CONFIGURE_ARGS+= --disable-mpi-f90
+.endif
+
+PLIST_SRC+= PLIST