summaryrefslogtreecommitdiff
path: root/parallel/openmpi/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'parallel/openmpi/options.mk')
-rw-r--r--parallel/openmpi/options.mk17
1 files changed, 12 insertions, 5 deletions
diff --git a/parallel/openmpi/options.mk b/parallel/openmpi/options.mk
index 2b73732a0d5..32840cbc7c8 100644
--- a/parallel/openmpi/options.mk
+++ b/parallel/openmpi/options.mk
@@ -1,7 +1,8 @@
-# $NetBSD: options.mk,v 1.10 2018/01/04 20:31:28 adam Exp $
+# $NetBSD: options.mk,v 1.11 2022/08/25 22:09:14 thor Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openmpi
-PKG_SUPPORTED_OPTIONS= debug f90 java sge
+PKG_SUPPORTED_OPTIONS= debug f90 java sge slurm
+PKG_SUGGESTED_OPTIONS+= f90
.include "../../mk/bsd.options.mk"
@@ -14,12 +15,12 @@ PLIST_VARS+= f08 f90 java sge
.if !empty(PKG_OPTIONS:Mf90)
USE_LANGUAGES+= fortran
GCC_REQD+= 4.7
-GCCDIR= ${PREFIX}/gcc47
CONFIGURE_ARGS+= --enable-mpi-fortran=yes
+# Enabling fortran builds for Fortran 90, and also for Fortran 08 if
+# the toolchain is good enough. In 2022, start by assuming that
+# USE_LANGUAGES=fortran gets us a sufficiently modern compiler.
PLIST.f90= yes
-. if ${OPSYS} == "Darwin" || ${OPSYS} == "Linux"
PLIST.f08= yes
-. endif
.else
CONFIGURE_ARGS+= --enable-mpi-fortran=no
.endif
@@ -38,3 +39,9 @@ PLIST.sge= yes
.else
CONFIGURE_ARGS+= --without-sge
.endif
+
+.if !empty(PKG_OPTIONS:Mslurm)
+CONFIGURE_ARGS+= --with-slurm
+.else
+CONFIGURE_ARGS+= --without-slurm
+.endif