redox/recipes/libs/libpng/recipe.toml
2025-02-15 01:01:03 -05:00

34 lines
723 B
TOML

[source]
tar = "https://github.com/pnggroup/libpng/archive/refs/tags/v1.6.46.tar.gz"
blake3 = "36f4bbb48c70975116b00ab0cff577931b96f703b2774ac3b33131d001419435"
script = """
DYNAMIC_INIT
chmod +w config.sub
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
autotools_recursive_regenerate
"""
[build]
template = "custom"
dependencies = ["zlib"]
script = """
DYNAMIC_INIT
if [[ -n "${COOKBOOK_PREFER_STATIC}" ]]; then
COOKBOOK_CONFIGURE_FLAGS+=(
--enable-static
--disable-shared
)
else
COOKBOOK_CONFIGURE_FLAGS+=(
--enable-shared
--enable-static
)
fi
cookbook_configure
"""
[package]
shared_deps = ["libgcc", "zlib"]