Add the libssh2 variant for curl. (#6980)
This commit is contained in:
parent
2be8712406
commit
c0f6cb5393
1 changed files with 3 additions and 0 deletions
|
@ -49,10 +49,12 @@ class Curl(AutotoolsPackage):
|
||||||
version('7.42.1', '296945012ce647b94083ed427c1877a8')
|
version('7.42.1', '296945012ce647b94083ed427c1877a8')
|
||||||
|
|
||||||
variant('nghttp2', default=False, description='build nghttp2 library (requires C++11)')
|
variant('nghttp2', default=False, description='build nghttp2 library (requires C++11)')
|
||||||
|
variant('libssh2', default=True, description='enable libssh2 support')
|
||||||
|
|
||||||
depends_on('openssl')
|
depends_on('openssl')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
depends_on('nghttp2', when='+nghttp2')
|
depends_on('nghttp2', when='+nghttp2')
|
||||||
|
depends_on('libssh2', when='+libssh2')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
@ -62,4 +64,5 @@ def configure_args(self):
|
||||||
'--with-ssl={0}'.format(spec['openssl'].prefix)
|
'--with-ssl={0}'.format(spec['openssl'].prefix)
|
||||||
]
|
]
|
||||||
args += self.with_or_without('nghttp2')
|
args += self.with_or_without('nghttp2')
|
||||||
|
args += self.with_or_without('libssh2')
|
||||||
return args
|
return args
|
||||||
|
|
Loading…
Reference in a new issue