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.

79 lines
2.0 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.2
  7. PKG_RELEASE:=2
  8. PKG_SOURCE:=pycurl-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycurl
  10. PKG_HASH:=0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4
  11. PKG_MAINTAINER:=Waldemar Konik <informatyk74@interia.pl>
  12. PKG_LICENSE:=LGPL-2.1
  13. PKG_LICENSE_FILES:=COPYING-LGPL
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-curl-$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  19. define Package/python-curl/Default
  20. CATEGORY:=Languages
  21. SECTION:=lang
  22. SUBMENU:=Python
  23. TITLE:=Python module interface to the cURL library
  24. URL:=http://pycurl.io/
  25. DEPENDS:=+libcurl
  26. endef
  27. define Package/python-curl
  28. $(call Package/python-curl/Default)
  29. DEPENDS+=+PACKAGE_python-curl:python
  30. VARIANT:=python
  31. endef
  32. define Package/python-curl/description
  33. PycURL is a Python interface to libcurl, the multiprotocol file transfer library.
  34. endef
  35. define Package/python3-curl
  36. $(call Package/python-curl/Default)
  37. DEPENDS+=+PACKAGE_python3-curl:python3
  38. VARIANT:=python3
  39. endef
  40. define Package/python3-curl/description
  41. $(call Package/python-curl/description)
  42. .
  43. (Variant for Python3)
  44. endef
  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. $(eval $(call PyPackage,python-curl))
  58. $(eval $(call BuildPackage,python-curl))
  59. $(eval $(call BuildPackage,python-curl-src))
  60. $(eval $(call Py3Package,python3-curl))
  61. $(eval $(call BuildPackage,python3-curl))
  62. $(eval $(call BuildPackage,python3-curl-src))