2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a
16 PKG_MD5SUM:=c8e877fe0426a99d0cf5872cf2f95b27
18 PKG_BUILD_DEPENDS:=python python-setuptools
19 HOST_BUILD_DEPENDS:=libffi/host python/host python-setuptools/host python-pycparser/host
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27 $(call include_mk, python-package.mk)
28 $(call include_mk, python-host.mk)
30 define Package/python-cffi
35 URL:=http://cffi.readthedocs.org/
36 DEPENDS:=+libffi +python-light +python-pycparser
39 define Package/python-cffi/description
40 Foreign Function Interface for Python calling C code.
44 $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
48 $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
54 $(eval $(call HostBuild))
56 $(eval $(call PyPackage,python-cffi))
57 $(eval $(call BuildPackage,python-cffi))