You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
692 B

  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
  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. ))