diff options
author | fhajny <fhajny@pkgsrc.org> | 2016-02-26 12:33:26 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2016-02-26 12:33:26 +0000 |
commit | 580ca62a56533e363e8c19e582aa1882c86e6f4e (patch) | |
tree | b495c6e682b1ee32bfc8a6919fe0fdd1885bda99 /databases/mongodb | |
parent | 52508731ffc9bac0f302b237dc378ed791df3cf9 (diff) | |
download | pkgsrc-580ca62a56533e363e8c19e582aa1882c86e6f4e.tar.gz |
Make wiredtiger an option, only make it available on 64bit platforms.
Diffstat (limited to 'databases/mongodb')
-rw-r--r-- | databases/mongodb/options.mk | 18 |
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 |