fixup! Build libcurl with meson.

This commit is contained in:
Matthieu Gautier 2024-05-29 16:23:15 +02:00
parent 8f434354a9
commit 5daa438c35
1 changed files with 33 additions and 29 deletions

View File

@ -17,40 +17,44 @@ class LibCurl(Dependency):
name = "libcurl" name = "libcurl"
src_archive = Remotefile( src_archive = Remotefile(
"curl-8.4.0.tar.xz", "curl-8.4.0.tar.xz",
"", "16c62a9c4af0f703d28bda6d7bbf37ba47055ad3414d70dec63e2e6336f2a82d",
"https://github.com/curl/curl/releases/curl-8_4_0/curl-8.4.0.tar.xz", "https://github.com/curl/curl/releases/download/curl-8_4_0/curl-8.4.0.tar.xz",
) )
meson_archive = Remotefile( meson_archive = Remotefile(
"curl_8.4.0-2_patch.zip", "curl_8.4.0-2_patch.zip",
"", "bbb6ae75225c36ef9bb336cface729794c7c070c623a003fff40bd416042ff6e",
"https://wrapdb.mesonbuild.com/v2/curl_8.4.0-2/get_path", "https://wrapdb.mesonbuild.com/v2/curl_8.4.0-2/get_patch",
) )
archive = [src_archive, meson_archive] archives = [src_archive, meson_archive]
class Builder(MesonBuilder): class Builder(MesonBuilder):
dependencies = ["zlib"] dependencies = ["zlib"]
configure_options = [
f"-D{p}=disabled" @property
for p in ( def configure_options(self):
"ssh", yield from (
"ssl", f"-D{p}=disabled"
"rtmp", for p in (
"http2", "ssh",
"idn", "ssl",
"brotli", "rtmp",
"ftp", "http2",
"file", "idn",
"ldap", "brotli",
"ldaps", "ftp",
"rtsp", "file",
"dict", "ldap",
"telnet", "ldaps",
"tftp", "rtsp",
"pop3", "proxy",
"imap", "dict",
"smb", "telnet",
"smtp", "tftp",
"gopher", "pop3",
"manual", "imap",
"smb",
"smtp",
"mqtt",
"gopher",
)
) )
]