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.

87 lines
2.1 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. PKG_SOURCE:=pycurl-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycurl
  10. PKG_HASH:=6f08330c5cf79fa8ef68b9912b9901db7ffd34b63e225dce74db56bb21deda8e
  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. PYTHON_PKG_SETUP_ARGS:=
  46. PYTHON3_PKG_SETUP_ARGS:=
  47. ifdef CONFIG_LIBCURL_OPENSSL
  48. PYTHON_PKG_SETUP_ARGS+=--with-openssl
  49. PYTHON3_PKG_SETUP_ARGS+=--with-openssl
  50. endif
  51. ifdef CONFIG_LIBCURL_GNUTLS
  52. PYTHON_PKG_SETUP_ARGS+=--with-gnutls
  53. PYTHON3_PKG_SETUP_ARGS+=--with-gnutls
  54. endif
  55. ifdef CONFIG_LIBCURL_MBEDTLS
  56. PYTHON_PKG_SETUP_ARGS+=--with-mbedtls
  57. PYTHON3_PKG_SETUP_ARGS+=--with-mbedtls
  58. endif
  59. ifdef CONFIG_LIBCURL_WOLFSSL
  60. PYTHON_PKG_SETUP_ARGS+=--with-wolfssl
  61. PYTHON3_PKG_SETUP_ARGS+=--with-wolfssl
  62. endif
  63. $(eval $(call PyPackage,python-curl))
  64. $(eval $(call BuildPackage,python-curl))
  65. $(eval $(call BuildPackage,python-curl-src))
  66. $(eval $(call Py3Package,python3-curl))
  67. $(eval $(call BuildPackage,python3-curl))
  68. $(eval $(call BuildPackage,python3-curl-src))