blob: 32840cbc7c8cbe2b86f8aa60c425a966bf2bd71d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $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 slurm
PKG_SUGGESTED_OPTIONS+= f90
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.endif
PLIST_VARS+= f08 f90 java sge
.if !empty(PKG_OPTIONS:Mf90)
USE_LANGUAGES+= fortran
GCC_REQD+= 4.7
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
PLIST.f08= yes
.else
CONFIGURE_ARGS+= --enable-mpi-fortran=no
.endif
.if !empty(PKG_OPTIONS:Mjava)
CONFIGURE_ARGS+= --enable-mpi-java
PLIST.java= yes
.include "../../mk/java-vm.mk"
.else
CONFIGURE_ARGS+= --disable-mpi-java
.endif
.if !empty(PKG_OPTIONS:Msge)
CONFIGURE_ARGS+= --with-sge
PLIST.sge= yes
.else
CONFIGURE_ARGS+= --without-sge
.endif
.if !empty(PKG_OPTIONS:Mslurm)
CONFIGURE_ARGS+= --with-slurm
.else
CONFIGURE_ARGS+= --without-slurm
.endif
|