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.

83 lines
1.9 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.3
  7. PKG_RELEASE:=1
  8. PYPI_NAME:=$(PKG_NAME)
  9. PKG_HASH:=6f08330c5cf79fa8ef68b9912b9901db7ffd34b63e225dce74db56bb21deda8e
  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 ../python-package.mk
  16. include ../python3-package.mk
  17. define Package/python-curl/Default
  18. CATEGORY:=Languages
  19. SECTION:=lang
  20. SUBMENU:=Python
  21. TITLE:=Python module interface to the cURL library
  22. URL:=http://pycurl.io/
  23. DEPENDS:=+libcurl
  24. endef
  25. define Package/python-curl
  26. $(call Package/python-curl/Default)
  27. DEPENDS+=+PACKAGE_python-curl:python
  28. VARIANT:=python
  29. endef
  30. define Package/python-curl/description
  31. PycURL is a Python interface to libcurl, the multiprotocol file transfer library.
  32. endef
  33. define Package/python3-curl
  34. $(call Package/python-curl/Default)
  35. DEPENDS+=+PACKAGE_python3-curl:python3
  36. VARIANT:=python3
  37. endef
  38. define Package/python3-curl/description
  39. $(call Package/python-curl/description)
  40. .
  41. (Variant for Python3)
  42. endef
  43. PYTHON_PKG_SETUP_ARGS:=
  44. PYTHON3_PKG_SETUP_ARGS:=
  45. ifdef CONFIG_LIBCURL_OPENSSL
  46. PYTHON_PKG_SETUP_ARGS+=--with-openssl
  47. PYTHON3_PKG_SETUP_ARGS+=--with-openssl
  48. endif
  49. ifdef CONFIG_LIBCURL_GNUTLS
  50. PYTHON_PKG_SETUP_ARGS+=--with-gnutls
  51. PYTHON3_PKG_SETUP_ARGS+=--with-gnutls
  52. endif
  53. ifdef CONFIG_LIBCURL_MBEDTLS
  54. PYTHON_PKG_SETUP_ARGS+=--with-mbedtls
  55. PYTHON3_PKG_SETUP_ARGS+=--with-mbedtls
  56. endif
  57. ifdef CONFIG_LIBCURL_WOLFSSL
  58. PYTHON_PKG_SETUP_ARGS+=--with-wolfssl
  59. PYTHON3_PKG_SETUP_ARGS+=--with-wolfssl
  60. endif
  61. $(eval $(call PyPackage,python-curl))
  62. $(eval $(call BuildPackage,python-curl))
  63. $(eval $(call BuildPackage,python-curl-src))
  64. $(eval $(call Py3Package,python3-curl))
  65. $(eval $(call BuildPackage,python3-curl))
  66. $(eval $(call BuildPackage,python3-curl-src))