forked from ports/contrib
34 lines
886 B
Plaintext
34 lines
886 B
Plaintext
# Description: Embedded key-value store for fast storage
|
|
# URL: https://rocksdb.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: gflags jemalloc liburing lz4 snappy
|
|
|
|
name=rocksdb
|
|
version=7.8.3
|
|
release=1
|
|
source=(https://github.com/facebook/rocksdb/archive/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
[[ -z $CCACHE_PREFIX ]] || unset CCACHE_PREFIX
|
|
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
|
|
}
|