2021-10-31 12:12:07 +11:00
|
|
|
# Description: Embedded key-value store for fast storage
|
|
|
|
# URL: https://rocksdb.org/
|
2023-03-03 19:55:25 +01:00
|
|
|
# Maintainer: unmaintained
|
2022-11-13 10:40:30 +00:00
|
|
|
# Depends on: gflags jemalloc liburing lz4 snappy
|
2021-10-31 12:12:07 +11:00
|
|
|
|
|
|
|
name=rocksdb
|
2023-03-03 19:55:25 +01:00
|
|
|
version=7.10.2
|
2021-10-31 12:12:07 +11:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/facebook/rocksdb/archive/v$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2022-12-17 09:46:34 +00:00
|
|
|
[[ -z $CCACHE_PREFIX ]] || unset CCACHE_PREFIX
|
2021-10-31 12:12:07 +11:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D WITH_BZ2=ON \
|
|
|
|
-D WITH_LZ4=ON \
|
|
|
|
-D WITH_SNAPPY=ON \
|
|
|
|
-D WITH_ZLIB=ON \
|
|
|
|
-D WITH_ZSTD=ON \
|
|
|
|
-D USE_RTTI=ON \
|
|
|
|
-D WITH_JEMALLOC=ON \
|
|
|
|
-D FAIL_ON_WARNINGS=OFF \
|
|
|
|
-D PORTABLE=ON \
|
|
|
|
-D WITH_BENCHMARK_TOOLS=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
}
|