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.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2015-2016 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:=cffi
  9. PKG_VERSION:=1.8.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a
  13. PKG_MD5SUM:=c8e877fe0426a99d0cf5872cf2f95b27
  14. PKG_BUILD_DEPENDS:=python python-setuptools
  15. HOST_BUILD_DEPENDS:=libffi/host python/host python-setuptools/host python-pycparser/host
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  19. include $(INCLUDE_DIR)/host-build.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. $(call include_mk, python-package.mk)
  22. $(call include_mk, python-host.mk)
  23. define Package/python-cffi
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=python-cffi
  28. URL:=http://cffi.readthedocs.org/
  29. DEPENDS:=+libffi +python-light +python-pycparser
  30. endef
  31. define Package/python-cffi/description
  32. Foreign Function Interface for Python calling C code.
  33. endef
  34. define Build/Compile
  35. $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
  36. endef
  37. define Host/Compile
  38. $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
  39. endef
  40. define Host/Install
  41. endef
  42. $(eval $(call HostBuild))
  43. $(eval $(call PyPackage,python-cffi))
  44. $(eval $(call BuildPackage,python-cffi))