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.

31 lines
1.2 KiB

  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/python3-dev
  8. $(call Package/python3/Default)
  9. TITLE:=Python $(PYTHON3_VERSION) development files
  10. DEPENDS:=+python3 +python3-lib2to3
  11. endef
  12. define Py3Package/python3-dev/install
  13. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
  14. $(CP) $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON3_VERSION)-config $(1)/usr/bin
  15. $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python3-config
  16. $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python-config
  17. $(LN) python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/libpython$(PYTHON3_VERSION).a $(1)/usr/lib/
  18. # This depends on being called before filespec is processed
  19. $(SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
  20. $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/Makefile
  21. endef
  22. $(eval $(call Py3BasePackage,python3-dev, \
  23. /usr/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION) \
  24. /usr/include/python$(PYTHON3_VERSION) \
  25. /usr/lib/pkgconfig \
  26. , \
  27. DO_NOT_ADD_TO_PACKAGE_DEPENDS \
  28. ))