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.

67 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-cffi
  9. PKG_VERSION:=1.13.1
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=cffi
  12. PKG_HASH:=558b3afef987cf4b17abd849e7bedf64ee12b28175d564d05b628a0f9355599b
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-cffi/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=C Foreign Function Interface
  25. URL:=https://cffi.readthedocs.org/
  26. DEPENDS:=+libffi
  27. endef
  28. define Package/python-cffi
  29. $(call Package/python-cffi/Default)
  30. DEPENDS+= \
  31. +PACKAGE_python-cffi:python-light \
  32. +PACKAGE_python-cffi:python-pycparser
  33. VARIANT:=python
  34. endef
  35. define Package/python3-cffi
  36. $(call Package/python-cffi/Default)
  37. DEPENDS+= \
  38. +PACKAGE_python3-cffi:python3-light \
  39. +PACKAGE_python3-cffi:python3-pycparser
  40. VARIANT:=python3
  41. endef
  42. define Package/python-cffi/description
  43. Foreign Function Interface for Python calling C code.
  44. endef
  45. define Package/python3-cffi/description
  46. $(call Package/python-cffi/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-cffi))
  51. $(eval $(call BuildPackage,python-cffi))
  52. $(eval $(call BuildPackage,python-cffi-src))
  53. $(eval $(call Py3Package,python3-cffi))
  54. $(eval $(call BuildPackage,python3-cffi))
  55. $(eval $(call BuildPackage,python3-cffi-src))