You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.4 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=pycurl
  6. PKG_VERSION:=7.43.0.5
  7. PKG_RELEASE:=1
  8. PYPI_NAME:=$(PKG_NAME)
  9. PKG_HASH:=ec7dd291545842295b7b56c12c90ffad2976cc7070c98d7b1517b7b6cd5994b3
  10. PKG_MAINTAINER:=Waldemar Konik <informatyk74@interia.pl>
  11. PKG_LICENSE:=LGPL-2.1
  12. PKG_LICENSE_FILES:=COPYING-LGPL
  13. include ../pypi.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. include ../python3-package.mk
  16. define Package/python-curl/Default
  17. CATEGORY:=Languages
  18. SECTION:=lang
  19. SUBMENU:=Python
  20. TITLE:=Python module interface to the cURL library
  21. URL:=http://pycurl.io/
  22. DEPENDS:=+libcurl
  23. endef
  24. define Package/python3-curl
  25. $(call Package/python-curl/Default)
  26. DEPENDS+=+PACKAGE_python3-curl:python3
  27. VARIANT:=python3
  28. endef
  29. define Package/python3-curl/description
  30. PycURL is a Python interface to libcurl, the multiprotocol file transfer library.
  31. .
  32. (Variant for Python3)
  33. endef
  34. PYTHON3_PKG_SETUP_ARGS:=
  35. ifdef CONFIG_LIBCURL_OPENSSL
  36. PYTHON3_PKG_SETUP_ARGS+=--with-openssl
  37. endif
  38. ifdef CONFIG_LIBCURL_GNUTLS
  39. PYTHON3_PKG_SETUP_ARGS+=--with-gnutls
  40. endif
  41. ifdef CONFIG_LIBCURL_MBEDTLS
  42. PYTHON3_PKG_SETUP_ARGS+=--with-mbedtls
  43. endif
  44. ifdef CONFIG_LIBCURL_WOLFSSL
  45. PYTHON3_PKG_SETUP_ARGS+=--with-wolfssl
  46. endif
  47. $(eval $(call Py3Package,python3-curl))
  48. $(eval $(call BuildPackage,python3-curl))
  49. $(eval $(call BuildPackage,python3-curl-src))