Merge pull request 'feat: upgrade curl to v8.23.0' (#36) from sisungo/ports:curl-v8.23.0 into main

Reviewed-on: http://gitea.semilabs.org/semios/ports/pulls/36
This commit was merged in pull request #36.
This commit is contained in:
sisungo committed 2026-11-04 06:19:10 +00:00
commit 7ae32e99e0
2 files changed
+87 -71

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ def builddep(s: str):
builddep("shortcut/c")
_builddep += ["libcxx-dev"]
elif s == "shortcut/autotools":
_builddep += ["gnu-make", "gnu-sed", "awk", "grep"]
_builddep += ["gnu-make", "gnu-sed", "awk", "grep", "pkgconf"]
elif s == "shortcut/rust":
builddep("shortcut/c")
_builddep += ["cargo", "rust"]
+86 -70
View File
@@ -1,94 +1,100 @@
from lib import cpp, arch
from lib.make import *
version("8.21.0")
version("8.23.0")
description("command line tool and library for transferring data with URLs")
maintainer("sisungo <[email protected]>")
source_url("https://curl.se/download/curl-8.21.0.tar.gz")
source_url("https://curl.se/download/curl-8.23.0.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep(f"libnghttp2-dev @{arch.get_target()}")
builddep(f"libcares-dev @{arch.get_target()}")
builddep(f"aws-lc-dev @{arch.get_target()}")
builddep(f"libbrotli-dev @{arch.get_target()}")
builddep(f"libz-dev @{arch.get_target()}")
builddep(f"libzstd-dev @{arch.get_target()}")
builddep(f"libpsl-dev @{arch.get_target()}")
builddep("libnghttp2-dev @target")
builddep("libcares-dev @target")
builddep("aws-lc-dev @target")
builddep("libbrotli-dev @target")
builddep("libz-dev @target")
builddep("libzstd-dev @target")
builddep("libpsl-dev @target")
builddep("libngtcp2-dev @target")
builddep("libnghttp3-dev @target")
def build():
cpp.configure(
[
"--prefix=/",
f"--bindir={get_prefix('curl')}/bin",
f"--libdir={get_prefix('libcurl')}/lib",
f"--includedir={get_prefix('libcurl-dev')}/include",
"--enable-optimize",
"--disable-debug",
"--enable-warnings",
"--enable-symbol-hiding",
"--enable-ares",
"--enable-http",
"--enable-ftp",
"--enable-file",
"--enable-ipfs",
"--disable-ldap",
"--disable-ldaps",
"--enable-rtsp",
"--enable-proxy",
"--enable-dict",
"--enable-telnet",
"--enable-tftp",
"--enable-pop3",
"--enable-imap",
"--enable-smb",
"--enable-smtp",
"--enable-gopher",
"--enable-mqtt",
"--disable-init-mem-debug",
"--enable-manual",
"--enable-docs",
"--enable-libcurl-option",
"--enable-ipv6",
"--enable-openssl-auto-load-config",
"--with-ca-path=/var/config/ssl/certs",
"--enable-versioned-symbols",
"--enable-typecheck",
"--enable-verbose",
"--disable-tls-srp",
"--enable-unix-sockets",
"--enable-cookies",
"--enable-socketpair",
"--enable-http-auth",
"--enable-doh",
"--enable-mime",
"--enable-bindlocal",
"--enable-form-api",
"--enable-dateparse",
"--enable-netrc",
"--enable-progress-meter",
"--enable-get-easy-options",
"--enable-alt-svc",
"--enable-headers-api",
"--enable-hsts",
"--enable-websockets",
"--with-openssl",
"--with-nghttp2",
"--without-libidn2",
]
)
cpp.configure([
"--prefix=/",
f"--bindir={get_prefix('curl')}/bin",
f"--libdir={get_prefix('libcurl')}/lib",
f"--includedir={get_prefix('libcurl-dev')}/include",
"--enable-optimize",
"--disable-debug",
"--enable-warnings",
"--enable-symbol-hiding",
"--enable-ares",
"--enable-http",
"--enable-ftp",
"--enable-file",
"--enable-ipfs",
"--disable-ldap",
"--disable-ldaps",
"--enable-rtsp",
"--enable-proxy",
"--enable-dict",
"--enable-telnet",
"--enable-tftp",
"--enable-pop3",
"--enable-imap",
"--enable-smb",
"--enable-smtp",
"--enable-gopher",
"--enable-mqtt",
"--disable-init-mem-debug",
"--enable-manual",
"--enable-docs",
"--enable-libcurl-option",
"--enable-ipv6",
"--enable-openssl-auto-load-config",
"--with-ca-path=/var/config/ssl/certs",
"--enable-versioned-symbols",
"--enable-typecheck",
"--enable-verbose",
"--disable-tls-srp",
"--enable-unix-sockets",
"--enable-cookies",
"--enable-socketpair",
"--enable-http-auth",
"--enable-doh",
"--enable-mime",
"--enable-bindlocal",
"--enable-form-api",
"--enable-dateparse",
"--enable-netrc",
"--enable-progress-meter",
"--enable-get-easy-options",
"--enable-alt-svc",
"--enable-headers-api",
"--enable-hsts",
"--enable-websockets",
"--with-openssl",
"--with-nghttp2",
"--with-nghttp3",
"--with-ngtcp2",
"--without-libidn2",
])
cpp.make()
cpp.make_install()
on_build(build)
package("libcurl")
dep("semi-libc @same-arch")
dep("libpsl @same-arch")
dep("libz @same-arch")
dep("libcares @same-arch")
dep("libnghttp2 @same-arch")
dep("libnghttp3 @same-arch")
dep("libngtcp2 @same-arch")
dep("libssl @same-arch")
dep("libcrypto @same-arch")
dep("libzstd @same-arch")
@@ -101,4 +107,14 @@ cpp.use_auto_pack(["bin"])
package("libcurl-dev")
dep("libcurl (same)")
dep("semi-libc-dev @same-arch")
dep("libpsl-dev @same-arch")
dep("libz-dev @same-arch")
dep("libcares-dev @same-arch")
dep("libnghttp2-dev @same-arch")
dep("libnghttp3-dev @same-arch")
dep("libngtcp2-dev @same-arch")
dep("aws-lc-dev @same-arch")
dep("libzstd-dev @same-arch")
dep("libbrotli-dev @same-arch")
cpp.use_auto_pack(["dev"])