b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2006-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 | |
| 8 | define Package/python3-dev |
| 9 | $(call Package/python3/Default) |
| 10 | TITLE+= development files |
| 11 | DEPENDS:=+python3 +python3-lib2to3 |
| 12 | endef |
| 13 | |
| 14 | define Package/python3-dev/description |
| 15 | $(call Package/python3/Default/description) |
| 16 | |
| 17 | This package contains files for building Python modules, extending the |
| 18 | Python interpreter, or embedded Python in applications. |
| 19 | endef |
| 20 | |
| 21 | define Py3Package/python3-dev/install |
| 22 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib |
| 23 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON3_VERSION)-config $(1)/usr/bin |
| 24 | $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python3-config |
| 25 | $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python-config |
| 26 | $(LN) python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/libpython$(PYTHON3_VERSION).a $(1)/usr/lib/ |
| 27 | endef |
| 28 | |
| 29 | $(eval $(call Py3BasePackage,python3-dev, \ |
| 30 | /usr/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)-* \ |
| 31 | /usr/include/python$(PYTHON3_VERSION) \ |
| 32 | /usr/lib/pkgconfig \ |
| 33 | , \ |
| 34 | DO_NOT_ADD_TO_PACKAGE_DEPENDS \ |
| 35 | )) |