apotocki/zstd 1.5.7 (r1, apple)
- Library
- zstd
- Variant
- apple, target apple
- Channel
- stable
- Published
- 2026-11-14
- Recipe source
- https://github.com/otok-dev/recipes.git
1ea16409510454b8ee22a4a83ff304e3e03808c4inrecipes/zstd/1.5/apple/ - Recipe SHA-256
a38923bb332fd53ff55314a1d893e85a9bcd6b03884994b9e5d4170679b57191
Recipe files changed
Inputs
| source.sha256 | eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3 |
|---|---|
| source.url | https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz |
Platforms
ios, iossim, macosx, catalyst, tvos, tvossim, watchos, watchossim, xros, xrossim
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- The CMake project in build/cmake, the library only (no programs, tests or contrib). What it installs: libzstd.a, or libzstd.dylib
-- with its links.
function build(slice, options, deps)
local static = slice.linkage == "static"
otok.cmake{
source = slice.source .. "/build/cmake",
defines = { ZSTD_BUILD_STATIC = static, ZSTD_BUILD_SHARED = not static, ZSTD_BUILD_PROGRAMS = false,
ZSTD_BUILD_TESTS = false, ZSTD_BUILD_CONTRIB = false, ZSTD_FRAMEWORK = false },
}
local p = slice.prefix
return { libraries = { zstd = otok.glob(static and "lib/libzstd.a" or "lib/libzstd.dylib", p)[1] }, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of Zstandard (https://github.com/apotocki/otok): libzstd for every Apple platform, from the release archive, with the
# CMake project in build/cmake, the library only; static or dynamic.
[recipe]
api = 1
library = "zstd"
name = "zstd"
version = "1.5.7"
revision = 1
license = "BSD-3-Clause OR GPL-2.0-only"
license-files = ["LICENSE"]
homepage = "https://facebook.github.io/zstd/"
documentation = "https://facebook.github.io/zstd/zstd_manual.html"
description = "Zstandard, a fast lossless compression algorithm."
keywords = ["compression", "zstd"]
linkage = ["static", "dynamic"]
[source]
url = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
sha256 = "eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3"
[platforms]
supported = ["ios", "iossim", "macosx", "catalyst", "tvos", "tvossim", "watchos", "watchossim", "xros", "xrossim"]
build-on = ["macos/xcode"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "Zstd"
libraries = ["zstd"]
apple = { privacy-manifest = "none" }