Merge branch 'curl-cmake' into 'master'

Use cmake for curl to avoid autotools

See merge request redox-os/redox!1875
This commit is contained in:
Jeremy Soller 2026-02-07 06:56:56 -07:00
commit f06317a2fa

View File

@ -4,33 +4,25 @@ branch = "redox-8.6"
upstream = "https://github.com/curl/curl.git"
[build]
template = "custom"
template = "cmake"
dependencies = [
#TODO: git fails to build when this is a dependency: "libpsl",
"nghttp2",
"openssl1",
"zlib"
]
script = """
DYNAMIC_INIT
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
GNU_CONFIG_GET config.sub
autotools_recursive_regenerate
COOKBOOK_CONFIGURE="./configure"
COOKBOOK_CONFIGURE_FLAGS+=(
--disable-ftp
--disable-ipv6
--disable-ntlm-wb
--disable-tftp
--disable-threaded-resolver
--with-ca-path=/etc/ssl/certs
--with-nghttp2
--with-ssl
--with-zlib
--without-libpsl
)
cookbook_configure
"""
cmakeflags = [
"-DCURL_DISABLE_FTP=On",
"-DCURL_DISABLE_TFTP=On",
"-DENABLE_IPV6=Off",
"-DCURL_DISABLE_NTLM=On",
"-DENABLE_THREADED_RESOLVER=Off",
"-DCURL_CA_PATH=/etc/ssl/certs",
"-DUSE_NGHTTP2=On",
"-DCURL_USE_OPENSSL=On",
"-DUSE_ZLIB=On",
"-DCURL_USE_LIBPSL=Off",
]
[package]
dependencies = [