python-package-dev.mk (750B)
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/python-dev 9 $(call Package/python/Default) 10 TITLE:=Python $(PYTHON_VERSION) development files 11 DEPENDS:=+python +python-lib2to3 12 endef 13 14 define PyPackage/python-dev/install 15 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 16 $(CP) $(PKG_INSTALL_DIR)/usr/bin/python*config $(1)/usr/bin 17 $(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config/libpython$(PYTHON_VERSION).a $(1)/usr/lib 18 endef 19 20 $(eval $(call PyBasePackage,python-dev, \ 21 /usr/lib/python$(PYTHON_VERSION)/config \ 22 /usr/include/python$(PYTHON_VERSION) \ 23 /usr/lib/pkgconfig \ 24 , \ 25 DO_NOT_ADD_TO_PACKAGE_DEPENDS \ 26 )) 27