summaryrefslogtreecommitdiff
path: root/databases/mongodb
diff options
context:
space:
mode:
authorfhajny <fhajny>2016-02-26 12:33:26 +0000
committerfhajny <fhajny>2016-02-26 12:33:26 +0000
commit284214b02a6eaa51f808021361b618eeab0681f7 (patch)
treeb495c6e682b1ee32bfc8a6919fe0fdd1885bda99 /databases/mongodb
parentd4eeded4dd0224d1fffac1c6d6a417e9442f4384 (diff)
downloadpkgsrc-284214b02a6eaa51f808021361b618eeab0681f7.tar.gz
Make wiredtiger an option, only make it available on 64bit platforms.
Diffstat (limited to 'databases/mongodb')
-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