1
0

python-package-dev.mk 708 B

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