blob: 74020d159cda1c869348bcb2ae68ebe1a022f864 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2015-2016, 2018-2021, 2023 Jeffery To
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-cffi
11PKG_VERSION:=1.16.0
12PKG_RELEASE:=1
13
14PYPI_NAME:=cffi
15PKG_HASH:=bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0
16
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21HOST_BUILD_DEPENDS:= \
22 python3/host \
23 python-build/host \
24 python-installer/host \
25 python-wheel/host \
26 python-pycparser/host
27
28include ../pypi.mk
29include $(INCLUDE_DIR)/package.mk
30include $(INCLUDE_DIR)/host-build.mk
31include ../python3-package.mk
32include ../python3-host-build.mk
33
34define Package/python3-cffi
35 SECTION:=lang
36 CATEGORY:=Languages
37 SUBMENU:=Python
38 TITLE:=C Foreign Function Interface
39 URL:=https://cffi.readthedocs.org/
40 DEPENDS:= \
41 +libffi \
42 +python3-light \
43 +python3-ctypes \
44 +python3-pycparser
45endef
46
47define Package/python3-cffi/description
48Foreign Function Interface for Python calling C code.
49endef
50
51$(eval $(call Py3Package,python3-cffi))
52$(eval $(call BuildPackage,python3-cffi))
53$(eval $(call BuildPackage,python3-cffi-src))
54$(eval $(call HostBuild))