2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 define Package
/python3-dev
9 $(call Package
/python3
/Default
)
10 TITLE
:=Python
$(PYTHON3_VERSION
) development files
11 DEPENDS
:=+python3
+python3-lib2to3
14 define Py3Package
/python3-dev
/install
15 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/lib
16 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/python
$(PYTHON3_VERSION
)-config
$(1)/usr
/bin
17 $(LN
) python
$(PYTHON3_VERSION
)-config
$(1)/usr
/bin
/python3-config
18 $(LN
) python
$(PYTHON3_VERSION
)-config
$(1)/usr
/bin
/python-config
19 $(LN
) python
$(PYTHON3_VERSION
)/config-
$(PYTHON3_VERSION
)/libpython
$(PYTHON3_VERSION
).a
$(1)/usr
/lib
/
20 # This depends on being called before filespec is processed
21 $(SED
) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
22 $(PKG_INSTALL_DIR
)/usr
/lib
/python
$(PYTHON3_VERSION
)/config-
$(PYTHON3_VERSION
)/Makefile
25 $(eval
$(call Py3BasePackage
,python3-dev
, \
26 /usr
/lib
/python
$(PYTHON3_VERSION
)/config-
$(PYTHON3_VERSION
) \
27 /usr
/include/python
$(PYTHON3_VERSION
) \
30 DO_NOT_ADD_TO_PACKAGE_DEPENDS \