kumquat-buildroot/package/rocksdb/rocksdb.mk
Fabrice Fontaine a5e7a62b4c package/rocksdb: new package
The RocksDB library provides a persistent key value store. Keys and
values are arbitrary byte arrays. The keys are ordered within the key
value store according to a user-specified comparator function.

The library is maintained by the Facebook Database Engineering Team, and
is based on LevelDB, by Sanjay Ghemawat and Jeff Dean at Google.

http://rocksdb.org

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-02-03 21:55:57 +01:00

68 lines
1.5 KiB
Makefile

################################################################################
#
# rocksdb
#
################################################################################
ROCKSDB_VERSION = 6.6.4
ROCKSDB_SITE = $(call github,facebook,rocksdb,v$(ROCKSDB_VERSION))
ROCKSDB_LICENSE = GPL-2.0 or Apache-2.0
ROCKSDB_LICENSE_FILES = COPYING LICENSE.Apache LICENSE.leveldb README.md
ROCKSDB_INSTALL_STAGING = YES
ROCKSDB_CONF_OPTS = \
-DPORTABLE=ON \
-DWITH_BENCHMARK_TOOLS=OFF \
-DWITH_TESTS=OFF \
-DWITH_TOOLS=OFF
ifeq ($(BR2_PACKAGE_BZIP2),y)
ROCKSDB_DEPENDENCIES += bzip2
ROCKSDB_CONF_OPTS += -DWITH_BZ2=ON
else
ROCKSDB_CONF_OPTS += -DWITH_BZ2=OFF
endif
ifeq ($(BR2_PACKAGE_JEMALLOC),y)
ROCKSDB_DEPENDENCIES += jemalloc
ROCKSDB_CONF_OPTS += -DWITH_JEMALLOC=ON
else
ROCKSDB_CONF_OPTS += -DWITH_JEMALLOC=OFF
endif
ifeq ($(BR2_PACKAGE_LZ4),y)
ROCKSDB_DEPENDENCIES += lz4
ROCKSDB_CONF_OPTS += -DWITH_LZ4=ON
else
ROCKSDB_CONF_OPTS += -DWITH_LZ4=OFF
endif
ifeq ($(BR2_PACKAGE_SNAPPY),y)
ROCKSDB_DEPENDENCIES += snappy
ROCKSDB_CONF_OPTS += -DWITH_SNAPPY=ON
else
ROCKSDB_CONF_OPTS += -DWITH_SNAPPY=OFF
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
ROCKSDB_DEPENDENCIES += zlib
ROCKSDB_CONF_OPTS += -DWITH_ZLIB=ON
else
ROCKSDB_CONF_OPTS += -DWITH_ZLIB=OFF
endif
ifeq ($(BR2_PACKAGE_ZSTD),y)
ROCKSDB_DEPENDENCIES += zstd
ROCKSDB_CONF_OPTS += -DWITH_ZSTD=ON
else
ROCKSDB_CONF_OPTS += -DWITH_ZSTD=OFF
endif
ifeq ($(BR2_STATIC_LIBS),y)
ROCKSDB_CONF_OPTS += -DROCKSDB_BUILD_SHARED=OFF
else
ROCKSDB_CONF_OPTS += -DROCKSDB_BUILD_SHARED=ON
endif
$(eval $(cmake-package))