redox/recipes/archives/zstd/recipe.toml

23 lines
634 B
TOML

[package]
description = "Compression library and tools, zstd/.zst format"
[source]
tar = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
blake3 = "730dca31244abd219e995f03a55d95b2cfb4b3e16cda055a79fa6f30a4f0e1db"
[build]
template = "custom"
script = """
DYNAMIC_STATIC_INIT
# TODO: fPIC is the default on linux but not on redox and
# required by llvm21 as zstd statically linked there
export CPPFLAGS="$CPPFLAGS -fPIC"
COOKBOOK_SOURCE="$COOKBOOK_SOURCE/build/cmake"
if [ "${COOKBOOK_DYNAMIC}" != "1" ]; then
COOKBOOK_CMAKE_FLAGS+=(
-DZSTD_BUILD_SHARED=OFF
)
fi
cookbook_cmake
"""