summaryrefslogtreecommitdiff
path: root/databases/mongodb/options.mk
blob: 040dcaf11cfad5a736e10e480baf6b29c9cc73b8 (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
# $NetBSD: options.mk,v 1.3 2016/02/26 16:03:09 fhajny Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.mongodb
PKG_SUPPORTED_OPTIONS=	ssl wiredtiger
PKG_SUGGESTED_OPTIONS=	#

.if !empty(MACHINE_ARCH:Mx86_64)
PKG_SUGGESTED_OPTIONS+=	wiredtiger
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mssl)
.include "../../security/openssl/buildlink3.mk"
SCONS_ARGS+=		--ssl
.endif

# The prospect of using databases/wiredtiger is unclear yet;
# MongoDB doesn't provide guarantees for non-bundled WiredTiger:
# https://groups.google.com/forum/#!msg/mongodb-dev/31FQSo4KVCI/Fx-WtJ9fzU4J
.if !empty(PKG_OPTIONS:Mwiredtiger)
.  if empty(MACHINE_ARCH:Mx86_64)
PKG_FAIL_REASON+=	"WiredTiger is not supported on 32-bit platforms"
.  endif
SCONS_ARGS+=		--wiredtiger=on
.else
SCONS_ARGS+=		--wiredtiger=off
.endif