summaryrefslogtreecommitdiff
path: root/lang/python/python-curl/Makefile
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-05-29 19:38:32 +0300
committerGitHub <noreply@github.com>2019-05-29 19:38:32 +0300
commite9d59949ce9d809e74d051c74ecbaf8667b6dcd9 (patch)
tree2efae5d74046d82e11c54fcc4c9dd2009510b5cd /lang/python/python-curl/Makefile
parent96ae56b1e505b71525997191e8600c799cd80794 (diff)
parent0dd445a248c629b37923ae88999abd2fb19ec1a5 (diff)
Merge pull request #8979 from val-kulkov/python-curl
python-curl: remove hardcoded dependency on mbedtls
Diffstat (limited to 'lang/python/python-curl/Makefile')
-rw-r--r--lang/python/python-curl/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/lang/python/python-curl/Makefile b/lang/python/python-curl/Makefile
index a5b4f54d4..ec364aa88 100644
--- a/lang/python/python-curl/Makefile
+++ b/lang/python/python-curl/Makefile
@@ -55,8 +55,20 @@ $(call Package/python-curl/description)
(Variant for Python3)
endef
-PYTHON_PKG_SETUP_ARGS:=--with-mbedtls
-PYTHON3_PKG_SETUP_ARGS:=--with-mbedtls
+ifdef CONFIG_LIBCURL_OPENSSL
+ PYTHON_PKG_SETUP_ARGS:=--with-openssl
+ PYTHON3_PKG_SETUP_ARGS:=--with-openssl
+endif
+
+ifdef CONFIG_LIBCURL_GNUTLS
+ PYTHON_PKG_SETUP_ARGS:=--with-gnutls
+ PYTHON3_PKG_SETUP_ARGS:=--with-gnutls
+endif
+
+ifdef CONFIG_LIBCURL_MBEDTLS
+ PYTHON_PKG_SETUP_ARGS:=--with-mbedtls
+ PYTHON3_PKG_SETUP_ARGS:=--with-mbedtls
+endif
$(eval $(call PyPackage,python-curl))
$(eval $(call BuildPackage,python-curl))