2014-09-02 21:48:18 +00:00
|
|
|
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
|
|
|
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup github 1.0
|
2022-02-01 02:49:33 +01:00
|
|
|
PortGroup cmake 1.1
|
2023-10-23 13:11:26 +08:00
|
|
|
PortGroup legacysupport 1.1
|
2014-09-02 21:48:18 +00:00
|
|
|
|
2023-10-23 13:11:26 +08:00
|
|
|
# strnlen
|
|
|
|
|
legacysupport.newest_darwin_requires_legacy 10
|
|
|
|
|
|
2025-04-24 10:25:37 +03:00
|
|
|
github.setup facebook rocksdb 10.1.3 v
|
2026-05-02 11:50:56 +04:00
|
|
|
revision 1
|
2022-02-01 02:49:33 +01:00
|
|
|
|
2014-09-02 21:48:18 +00:00
|
|
|
categories databases devel
|
|
|
|
|
license BSD
|
|
|
|
|
|
2018-06-18 01:29:09 -05:00
|
|
|
maintainers {stromnov @stromnov} openmaintainer
|
2014-09-02 21:48:18 +00:00
|
|
|
|
|
|
|
|
description Embedded key-value store for fast storage
|
2020-01-13 17:19:02 +11:00
|
|
|
long_description {*}${description}
|
2014-09-02 21:48:18 +00:00
|
|
|
|
2022-11-28 05:44:38 +08:00
|
|
|
homepage https://rocksdb.org
|
2014-09-02 21:48:18 +00:00
|
|
|
|
2025-04-24 10:25:37 +03:00
|
|
|
checksums rmd160 288efe2fccc68412b02d96000dce677ff9b31ed1 \
|
|
|
|
|
sha256 df44cbca43d2002726ebbdd5caeae1701dcdf0500d4c2065d6fca261b4706a37 \
|
|
|
|
|
size 13766405
|
2023-10-23 13:11:26 +08:00
|
|
|
github.tarball_from archive
|
2014-09-02 21:48:18 +00:00
|
|
|
|
|
|
|
|
depends_lib-append port:gflags \
|
2020-10-09 11:55:25 +03:00
|
|
|
port:snappy \
|
2014-09-02 21:48:18 +00:00
|
|
|
port:zlib \
|
|
|
|
|
port:bzip2 \
|
2020-10-09 11:55:25 +03:00
|
|
|
port:lz4 \
|
|
|
|
|
port:zstd
|
2014-09-02 21:48:18 +00:00
|
|
|
|
2024-05-13 05:50:06 +10:00
|
|
|
patch.pre_args-replace -p0 -p1
|
2023-04-15 08:24:02 +08:00
|
|
|
patchfiles 0001-rocksdb-fixes-for-macOS-PPC.patch \
|
2023-10-23 13:11:26 +08:00
|
|
|
0002-MAP_ANON.patch
|
2022-11-28 05:44:38 +08:00
|
|
|
|
2023-10-23 13:11:26 +08:00
|
|
|
compiler.cxx_standard 2017
|
2020-10-09 19:44:47 -05:00
|
|
|
compiler.thread_local_storage yes
|
2022-11-28 05:44:38 +08:00
|
|
|
|
2024-01-15 21:01:34 +01:00
|
|
|
# DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON fixes the build while an older version is installed, see #69079
|
2022-11-28 05:44:38 +08:00
|
|
|
configure.args-append \
|
2023-04-04 10:36:07 +03:00
|
|
|
-DWITH_JEMALLOC=OFF \
|
|
|
|
|
-DWITH_LIBURING=OFF \
|
2022-11-28 05:44:38 +08:00
|
|
|
-DWITH_SNAPPY=ON \
|
2023-04-04 10:36:07 +03:00
|
|
|
-DWITH_LZ4=ON \
|
2022-11-28 05:44:38 +08:00
|
|
|
-DWITH_ZLIB=ON \
|
|
|
|
|
-DWITH_ZSTD=ON \
|
|
|
|
|
-DUSE_FOLLY=OFF \
|
2023-04-04 10:36:07 +03:00
|
|
|
-DROCKSDB_BUILD_SHARED=ON \
|
|
|
|
|
-DWITH_BZ2=ON \
|
|
|
|
|
-DWITH_MD_LIBRARY=ON \
|
2024-01-15 21:01:34 +01:00
|
|
|
-DWITH_TBB=OFF \
|
|
|
|
|
-DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON
|
2022-11-28 05:44:38 +08:00
|
|
|
|
|
|
|
|
if {[string match *gcc* ${configure.compiler}]} {
|
|
|
|
|
# version_set.cc: error: 'rocksdb::{anonymous}::ManifestPicker::ManifestPicker' defined but not used
|
|
|
|
|
# port_posix.cc: error: 'm' may be used uninitialized
|
|
|
|
|
# db_bench_tool.cc: error: narrowing conversion of 'thread->rocksdb::ThreadState::rand.rocksdb::Random64::Next()' from 'uint64_t' to 'size_t'
|
|
|
|
|
configure.cxxflags-append \
|
|
|
|
|
-Wno-unused-function \
|
|
|
|
|
-Wno-maybe-uninitialized \
|
|
|
|
|
-Wno-narrowing
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-14 04:51:54 +08:00
|
|
|
# Build auto-detects ccache if it is installed and attempts to write
|
|
|
|
|
# to CCACHE_DIR, which is not allowed if configure.ccache=off.
|
|
|
|
|
# Set CCACHE_DIR to the build directory instead.
|
|
|
|
|
if {![option configure.ccache]} {
|
|
|
|
|
configure.env-append CCACHE_DIR=${workpath}/.ccache
|
|
|
|
|
build.env-append CCACHE_DIR=${workpath}/.ccache
|
|
|
|
|
destroot.env-append CCACHE_DIR=${workpath}/.ccache
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-28 05:44:38 +08:00
|
|
|
variant jemalloc description "Use jemalloc" {
|
|
|
|
|
depends_lib-append \
|
2024-09-11 21:04:57 +08:00
|
|
|
path:lib/pkgconfig/jemalloc.pc:jemalloc
|
2022-11-28 05:44:38 +08:00
|
|
|
configure.args-replace \
|
|
|
|
|
-DWITH_JEMALLOC=OFF -DWITH_JEMALLOC=ON
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variant tbb description "Use TBB" {
|
|
|
|
|
depends_lib-append \
|
2023-04-24 02:10:46 +02:00
|
|
|
port:onetbb
|
2022-11-28 05:44:38 +08:00
|
|
|
configure.args-replace \
|
|
|
|
|
-DWITH_TBB=OFF -DWITH_TBB=ON
|
|
|
|
|
}
|