mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
On ubuntu, the libcurl package is compiled with libkrb (kerberos). However, no libkrb5.a is provided and so, we cannot link statically. As we are not using kerberos, we can (and must) compile ourselves libcurl.
30 lines
1005 B
Python
30 lines
1005 B
Python
import os
|
|
|
|
from .base import (
|
|
Dependency,
|
|
ReleaseDownload,
|
|
MakeBuilder,
|
|
)
|
|
|
|
from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
|
|
from kiwixbuild._global import get_target_step
|
|
|
|
class LibCurl(Dependency):
|
|
name = "libcurl"
|
|
|
|
class Source(ReleaseDownload):
|
|
name = "libcurl"
|
|
archive = Remotefile('curl-7.61.0.tar.xz',
|
|
'ef6e55192d04713673b4409ccbcb4cb6cd723137d6e10ca45b0c593a454e1720',
|
|
'https://curl.haxx.se/download/curl-7.61.0.tar.xz')
|
|
|
|
class Builder(MakeBuilder):
|
|
dependencies = ['zlib']
|
|
configure_option = " ".join(
|
|
["--without-{}".format(p)
|
|
for p in ('libssh2', 'ssl', 'libmetalink', 'librtmp')] +
|
|
["--disable-{}".format(p)
|
|
for p in ('ftp', 'file', 'ldap', 'ldaps', 'rtsp', 'dict',
|
|
'telnet', 'tftp', 'pop3', 'imap', 'smb', 'smtp',
|
|
'gopher', 'manual')])
|