blob: 9fd5ee15be1853b1b8069318d4f18d8f005bb7c4 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "RocksDB an embeddable, persistent key-value store"
2DESCRIPTION = "RocksDB is library that provides an embeddable, persistent key-value store for fast storage."
3HOMEPAGE = "http://rocksdb.org/"
4LICENSE = "(Apache-2.0 | GPL-2.0) & BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7 file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
8
Brad Bishop15ae2502019-06-18 21:44:24 -04009SRCREV = "628a7fd74b5611657106c57f724f1682b114684c"
10SRCBRANCH = "6.0.fb"
11PV = "6.0.2"
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \
Brad Bishop15ae2502019-06-18 21:44:24 -040014 file://0001-CMake-has-stock-FindZLIB-in-upper-case.patch \
Brad Bishop19323692019-04-05 15:28:33 -040015 file://0001-Disable-Wshadow-and-do-not-mark-default-copy-constru.patch \
16 file://0001-utilities-Fix-build-failure-with-Werror-maybe-uninit.patch \
Brad Bishop15ae2502019-06-18 21:44:24 -040017 file://0001-fix-Issue-5303.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018 "
Brad Bishop316dfdd2018-06-25 12:45:53 -040019
20S = "${WORKDIR}/git"
21
22inherit cmake
23
Brad Bishop15ae2502019-06-18 21:44:24 -040024PACKAGECONFIG ??= "bzip2 zlib lz4 gflags"
Brad Bishop19323692019-04-05 15:28:33 -040025PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON -DBZIP2_LIBRARIES:STRING=bz2,-DWITH_BZ2=OFF,bzip2"
26PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON -DLZ4_LIBRARIES:STRING=lz4,-DWITH_LZ4=OFF,lz4"
Brad Bishop15ae2502019-06-18 21:44:24 -040027PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON -DZLIB_LIBRARY:STRING=z,-DWITH_ZLIB=OFF,zlib"
28PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd"
Brad Bishop316dfdd2018-06-25 12:45:53 -040029PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF"
Brad Bishop15ae2502019-06-18 21:44:24 -040030PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags"
Brad Bishop316dfdd2018-06-25 12:45:53 -040031
32# Tools and tests currently don't compile on armv5 so we disable them
33EXTRA_OECMAKE = "\
34 -DPORTABLE=ON \
35 -DWITH_TESTS=OFF \
36 -DWITH_TOOLS=OFF \
37"
Brad Bishop19323692019-04-05 15:28:33 -040038
39do_install_append() {
40 # fix for qa check buildpaths
41 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
42}