Build libcurl with meson.
This commit is contained in:
parent
4dbb0fefe3
commit
3e1acd9ece
|
@ -3,7 +3,7 @@ import os
|
||||||
from .base import (
|
from .base import (
|
||||||
Dependency,
|
Dependency,
|
||||||
ReleaseDownload,
|
ReleaseDownload,
|
||||||
MakeBuilder,
|
MesonBuilder,
|
||||||
)
|
)
|
||||||
|
|
||||||
from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
|
from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
|
||||||
|
@ -15,44 +15,42 @@ class LibCurl(Dependency):
|
||||||
|
|
||||||
class Source(ReleaseDownload):
|
class Source(ReleaseDownload):
|
||||||
name = "libcurl"
|
name = "libcurl"
|
||||||
archive = Remotefile(
|
src_archive = Remotefile(
|
||||||
"curl-7.67.0.tar.xz",
|
"curl-8.4.0.tar.xz",
|
||||||
"f5d2e7320379338c3952dcc7566a140abb49edb575f9f99272455785c40e536c",
|
"",
|
||||||
"https://curl.haxx.se/download/curl-7.67.0.tar.xz",
|
"https://github.com/curl/curl/releases/curl-8_4_0/curl-8.4.0.tar.xz",
|
||||||
)
|
)
|
||||||
|
meson_archive = Remotefile(
|
||||||
|
"curl_8.4.0-2_patch.zip",
|
||||||
|
"",
|
||||||
|
"https://wrapdb.mesonbuild.com/v2/curl_8.4.0-2/get_path",
|
||||||
|
)
|
||||||
|
archive = [src_archive, meson_archive]
|
||||||
|
|
||||||
class Builder(MakeBuilder):
|
class Builder(MesonBuilder):
|
||||||
dependencies = ["zlib"]
|
dependencies = ["zlib"]
|
||||||
configure_options = [
|
configure_options = [
|
||||||
*[
|
f"-D{p}=disabled"
|
||||||
f"--without-{p}"
|
for p in (
|
||||||
for p in (
|
"ssh",
|
||||||
"libssh2",
|
"ssl",
|
||||||
"ssl",
|
"rtmp",
|
||||||
"libmetalink",
|
"http2",
|
||||||
"librtmp",
|
"idn",
|
||||||
"nghttp2",
|
"brotli",
|
||||||
"libidn2",
|
"ftp",
|
||||||
"brotli",
|
"file",
|
||||||
)
|
"ldap",
|
||||||
],
|
"ldaps",
|
||||||
*[
|
"rtsp",
|
||||||
f"--disable-{p}"
|
"dict",
|
||||||
for p in (
|
"telnet",
|
||||||
"ftp",
|
"tftp",
|
||||||
"file",
|
"pop3",
|
||||||
"ldap",
|
"imap",
|
||||||
"ldaps",
|
"smb",
|
||||||
"rtsp",
|
"smtp",
|
||||||
"dict",
|
"gopher",
|
||||||
"telnet",
|
"manual",
|
||||||
"tftp",
|
)
|
||||||
"pop3",
|
|
||||||
"imap",
|
|
||||||
"smb",
|
|
||||||
"smtp",
|
|
||||||
"gopher",
|
|
||||||
"manual",
|
|
||||||
)
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue