Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "mongodb" |
| 2 | LICENSE = "AGPL-3.0 & Apache-2.0" |
| 3 | LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \ |
| 4 | file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 5 | |
| 6 | DEPENDS = "openssl libpcre libpcap zlib" |
| 7 | |
| 8 | inherit scons |
| 9 | |
| 10 | PV = "3.3.0+git${SRCPV}" |
| 11 | SRCREV = "aacd231be0626a204cb40908afdf62c4b67bb0ad" |
| 12 | SRC_URI = "git://github.com/mongodb/mongo.git;branch=master \ |
| 13 | file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ |
| 14 | " |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | # Wiredtiger supports only 64-bit platforms |
| 19 | PACKAGECONFIG_x86-64 ??= "tcmalloc wiredtiger" |
| 20 | PACKAGECONFIG_aarch64 ??= "tcmalloc wiredtiger" |
| 21 | PACKAGECONFIG ??= "tcmalloc" |
| 22 | # gperftools compilation fails for arm below v7 because of missing support of |
| 23 | # dmb operation. So we use system-allocator instead of tcmalloc |
| 24 | PACKAGECONFIG_remove_armv6 = "tcmalloc" |
| 25 | |
| 26 | #std::current_exception is undefined for arm < v6 |
| 27 | COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" |
| 28 | COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" |
| 29 | COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*" |
| 30 | |
| 31 | PACKAGECONFIG[tcmalloc] = "--use-system-tcmalloc,--allocator=system,gperftools," |
| 32 | PACKAGECONFIG[wiredtiger] = "--wiredtiger=on,--wiredtiger=off,," |
| 33 | |
| 34 | EXTRA_OESCONS = "--prefix=${D}${prefix} \ |
| 35 | LIBPATH=${STAGING_LIBDIR} \ |
| 36 | LINKFLAGS='${LDFLAGS}' \ |
| 37 | CXXFLAGS='${CXXFLAGS}' \ |
| 38 | TARGET_ARCH=${TARGET_ARCH} \ |
| 39 | --ssl \ |
| 40 | --disable-warnings-as-errors \ |
| 41 | --use-system-pcre \ |
| 42 | --use-system-zlib \ |
| 43 | --js-engine=none \ |
| 44 | --nostrip \ |
| 45 | ${EXTRA_OECONF} \ |
| 46 | mongod mongos" |
| 47 | DISABLE_STATIC = "" |
| 48 | |
| 49 | scons_do_compile() { |
| 50 | ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \ |
| 51 | die "scons build execution failed." |
| 52 | } |
| 53 | |
| 54 | scons_do_install() { |
| 55 | ${STAGING_BINDIR_NATIVE}/scons install ${EXTRA_OESCONS}|| \ |
| 56 | die "scons install execution failed." |
| 57 | } |