@@ -4,22 +4,22 @@ using BinaryBuilder, Pkg
44
55name = " Blosc2"
66
7- upstream_version = v "2.23.1 "
7+ upstream_version = v "3.0.0 "
88# We add a version offset because:
99# - Blosc2 2.15 is not ABI-compatible with Blosc2 2.14
1010# (see the release notes <https://github.com/Blosc/c-blosc2/releases/tag/v2.15.0>)
1111# - Blosc2 2.20 is not ABI-compatible with Blosc2 2.18
1212# (the shared library SOVERSION was increased)
1313# - Blosc2 2.23.1 is not ABI-compatible with Blosc2 2.23.0
1414# (the shared library SOVERSION was increased)
15- version_offset = v "3 .0.0"
15+ version_offset = v "0 .0.0"
1616version = VersionNumber (upstream_version. major * 100 + version_offset. major,
1717 upstream_version. minor * 100 + version_offset. minor,
1818 upstream_version. patch * 100 + version_offset. patch)
1919
2020# Collection of sources required to build Blosc2
2121sources = [
22- GitSource (" https://github.com/Blosc/c-blosc2.git" , " 1386ef42f58b61c876edf714a2af84bd7b59dc5d " ),
22+ GitSource (" https://github.com/Blosc/c-blosc2.git" , " 917ec73d24320aeecf5f689975b8932ebeff4394 " ),
2323 DirectorySource (" bundled" ),
2424]
2525
@@ -39,17 +39,26 @@ if [[ "${target}" == x86_64-apple-darwin* ]]; then
3939 perl -pi -e 's/#define HAVE_CPU_FEAT_INTRIN/#undef HAVE_CPU_FEAT_INTRIN/' blosc/shuffle.c
4040fi
4141
42- cmake -B build -G Ninja \
43- -DCMAKE_INSTALL_PREFIX=${prefix} \
44- -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
45- -DCMAKE_BUILD_TYPE=Release \
46- -DBUILD_BENCHMARKS=OFF \
47- -DBUILD_EXAMPLES=OFF \
48- -DBUILD_STATIC=OFF \
49- -DBUILD_TESTS=OFF \
50- -DPREFER_EXTERNAL_LZ4=ON \
51- -DPREFER_EXTERNAL_ZLIB=ON \
42+ options=(
43+ -DCMAKE_INSTALL_PREFIX=${prefix}
44+ -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN}
45+ -DCMAKE_BUILD_TYPE=Release
46+ -DBUILD_BENCHMARKS=OFF
47+ -DBUILD_EXAMPLES=OFF
48+ -DBUILD_FUZZERS=OFF
49+ -DBUILD_PLUGINS=OFF
50+ -DBUILD_STATIC=OFF
51+ -DBUILD_TESTS=OFF
52+ -DPREFER_EXTERNAL_LZ4=ON
53+ -DPREFER_EXTERNAL_ZLIB=ON
5254 -DPREFER_EXTERNAL_ZSTD=ON
55+ -DLZ4_DIR=${prefix}
56+ -DZLIB_NG_DIR=${prefix}
57+ -DZSTD_DIR=${prefix}
58+ -DZFP_DIR=${prefix}
59+ )
60+
61+ cmake -Bbuild -GNinja "${options[@]}"
5362cmake --build build --parallel ${nproc}
5463cmake --install build
5564install_license LICENSES/*.txt
@@ -67,7 +76,7 @@ products = [
6776# Dependencies that must be installed before this package can be built
6877dependencies = [
6978 Dependency (" Lz4_jll" ; compat= " 1.10.1" ),
70- Dependency (" Zlib_jll " ; compat= " 1.2.12 " ),
79+ Dependency (" ZlibNG_jll " ; compat= " 2.3.3 " ),
7180 Dependency (" Zstd_jll" ; compat= " 1.5.7" ),
7281]
7382
0 commit comments