summaryrefslogtreecommitdiff
path: root/parallel/openmpi/options.mk
blob: 2b73732a0d541cb7d5490f235462cd0e8c54abe1 (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
# $NetBSD: options.mk,v 1.10 2018/01/04 20:31:28 adam Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.openmpi
PKG_SUPPORTED_OPTIONS=	debug f90 java sge

.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
GCCDIR=			${PREFIX}/gcc47
CONFIGURE_ARGS+=	--enable-mpi-fortran=yes
PLIST.f90=		yes
.  if ${OPSYS} == "Darwin" || ${OPSYS} == "Linux"
PLIST.f08=		yes
.  endif
.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