Skip to content

Commit

Permalink
Build libcurl with meson.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Nov 29, 2023
1 parent 39ec596 commit 963a55b
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions kiwixbuild/dependencies/libcurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .base import (
Dependency,
ReleaseDownload,
MakeBuilder,
MesonBuilder,
)

from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
Expand All @@ -14,17 +14,20 @@ class LibCurl(Dependency):

class Source(ReleaseDownload):
name = "libcurl"
archive = Remotefile('curl-7.67.0.tar.xz',
'f5d2e7320379338c3952dcc7566a140abb49edb575f9f99272455785c40e536c',
'https://curl.haxx.se/download/curl-7.67.0.tar.xz')
src_archive = Remotefile('curl-8.4.0.tar.xz',
'',
'https://github.com/curl/curl/releases/download/curl-8_4_0/curl-8.4.0.tar.xz')

class Builder(MakeBuilder):
meson_archive = Remotefile('curl_8.4.0-2_patch.zip',
'',
'https://wrapdb.mesonbuild.com/v2/curl_8.4.0-2/get_patch')

archives = [src_archive, meson_archive]

class Builder(MesonBuilder):
dependencies = ['zlib']
configure_options = [
*[f"--without-{p}" for p in
('libssh2', 'ssl', 'libmetalink', 'librtmp', 'nghttp2', 'libidn2', 'brotli')
],
*[f"--disable-{p}" for p in
('ftp', 'file', 'ldap', 'ldaps', 'rtsp', 'dict', 'telnet',
'tftp', 'pop3', 'imap', 'smb', 'smtp', 'gopher', 'manual')]
configure_options = [f"-D{p}=disabled" for p in
('ssh', 'ssl', 'rtmp', 'http2', 'idn', 'brotli',
'ftp', 'file', 'ldap', 'ldaps', 'rtsp', 'dict', 'telnet',
'tftp', 'pop3', 'imap', 'smb', 'smtp', 'gopher')
]

0 comments on commit 963a55b

Please sign in to comment.