python-greenlet: support MIPS architecture
[feed/packages.git] / lang / python / python-greenlet / Makefile
1 #
2 # Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-greenlet
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=2
13
14 PYPI_NAME:=greenlet
15 PKG_HASH:=719e169c79255816cdcf6dccd9ed2d089a72a9f6c42273aae12d55e8d35bdcf8
16
17 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=LICENSE
20 # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
21 PKG_USE_MIPS16:=0
22
23 include ../pypi.mk
24 include $(INCLUDE_DIR)/package.mk
25 include ../python3-package.mk
26
27 define Package/python3-greenlet
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=Lightweight coroutines for in-process concurrent programming
32 URL:=https://github.com/python-greenlet/greenlet
33 DEPENDS:= \
34 +python3-light \
35 +libstdcpp \
36 @!arc
37 endef
38
39 define Package/python3-greenlet/description
40 The greenlet package is a spin-off of Stackless
41 a version of CPython that supports micro-threads called tasklets.
42 endef
43
44 # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
45 # This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16
46 # flags are inherited from the Python base package (via sysconfig module)
47 ifdef CONFIG_USE_MIPS16
48 TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16
49 endif
50
51 $(eval $(call Py3Package,python3-greenlet))
52 $(eval $(call BuildPackage,python3-greenlet))
53 $(eval $(call BuildPackage,python3-greenlet-src))