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.

55 lines
1.2 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.6
  7. PKG_RELEASE:=1
  8. PYPI_NAME:=$(PKG_NAME)
  9. PKG_HASH:=8301518689daefa53726b59ded6b48f33751c383cf987b0ccfbbc4ed40281325
  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/python3-curl
  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 +python3
  23. endef
  24. define Package/python3-curl/description
  25. PycURL is a Python interface to libcurl, the multiprotocol file transfer library.
  26. endef
  27. PYTHON3_PKG_SETUP_ARGS:=
  28. ifdef CONFIG_LIBCURL_OPENSSL
  29. PYTHON3_PKG_SETUP_ARGS+=--with-openssl
  30. endif
  31. ifdef CONFIG_LIBCURL_GNUTLS
  32. PYTHON3_PKG_SETUP_ARGS+=--with-gnutls
  33. endif
  34. ifdef CONFIG_LIBCURL_MBEDTLS
  35. PYTHON3_PKG_SETUP_ARGS+=--with-mbedtls
  36. endif
  37. ifdef CONFIG_LIBCURL_WOLFSSL
  38. PYTHON3_PKG_SETUP_ARGS+=--with-wolfssl
  39. endif
  40. $(eval $(call Py3Package,python3-curl))
  41. $(eval $(call BuildPackage,python3-curl))
  42. $(eval $(call BuildPackage,python3-curl-src))