2 # Copyright (C) 2015-2018 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
:=cffi-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/10/f7
/3b302ff34045f25065091d40e074479d6893882faef135c96f181a57ed06
16 PKG_HASH
:=df9083a992b17a28cd4251a3f5c879e0198bb26c9e808c4647e0a18739f1d11d
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-cffi-
$(PKG_VERSION
)
21 PKG_LICENSE_FILES
:=LICENSE
22 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>, Alexandru Ardelean
<ardeleanalex@gmail.com
>
24 PKG_BUILD_DEPENDS
:=libffi
/host
26 HOST_PYTHON_PACKAGE_BUILD_DEPENDS
:="cffi==$(PKG_VERSION)"
27 HOST_PYTHON3_PACKAGE_BUILD_DEPENDS
:="cffi==$(PKG_VERSION)"
29 include $(INCLUDE_DIR
)/package.mk
30 include ..
/python-package.mk
31 include ..
/python3-package.mk
33 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
35 define Package
/python-cffi
/Default
39 URL
:=http
://cffi.readthedocs.org
/
43 define Package
/python-cffi
44 $(call Package
/python-cffi
/Default
)
46 DEPENDS
+=+PACKAGE_python-cffi
:python-light
+PACKAGE_python-cffi
:python-pycparser
50 define Package
/python3-cffi
51 $(call Package
/python-cffi
/Default
)
53 DEPENDS
+=+PACKAGE_python3-cffi
:python3-light
+PACKAGE_python3-cffi
:python3-pycparser
57 define Package
/python-cffi
/description
58 Foreign Function Interface for Python calling C code.
61 define Package
/python3-cffi
/description
62 $(call Package
/python-cffi
/description
)
67 $(eval
$(call PyPackage
,python-cffi
))
68 $(eval
$(call BuildPackage
,python-cffi
))
69 $(eval
$(call BuildPackage
,python-cffi-src
))
71 $(eval
$(call Py3Package
,python3-cffi
))
72 $(eval
$(call BuildPackage
,python3-cffi
))
73 $(eval
$(call BuildPackage
,python3-cffi-src
))