summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/mongodb/options.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/databases/mongodb/options.mk b/databases/mongodb/options.mk
index 63c20aa65d6..ecc50c4eb06 100644
--- a/databases/mongodb/options.mk
+++ b/databases/mongodb/options.mk
@@ -1,7 +1,12 @@
-# $NetBSD: options.mk,v 1.1 2015/05/02 08:10:33 ryoon Exp $
+# $NetBSD: options.mk,v 1.2 2016/02/26 12:33:26 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mongodb
-PKG_SUPPORTED_OPTIONS= ssl
+PKG_SUPPORTED_OPTIONS= ssl wiredtiger
+PKG_SUGGESTED_OPTIONS= #
+
+.if !empty(MACHINE_ARCH:Mx86_64)
+PKG_SUGGESTED_OPTIONS+= wiredtiger
+.endif
.include "../../mk/bsd.options.mk"
@@ -9,3 +14,12 @@ PKG_SUPPORTED_OPTIONS= ssl
.include "../../security/openssl/buildlink3.mk"
SCONS_ARGS+= --ssl
.endif
+
+.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