Use cmake for curl to avoid autotools

This commit is contained in:
Wildan M 2026-02-07 15:59:20 +07:00
parent 8949dd37ee
commit d8e54ac77d
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

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 = [