python3: install pkgconfig to staging 7978/head
authorDaniel F. Dickinson <cshored@thecshore.com>
Wed, 2 Jan 2019 06:18:46 +0000 (01:18 -0500)
committerDaniel F. Dickinson <cshored@thecshore.com>
Fri, 18 Jan 2019 09:40:43 +0000 (04:40 -0500)
Some programs that use the Python C API have difficulties finding
cross-compiled Python3 without the pkgconfig, so make sure we have
python3.pc and python-3.7.pc in pkgconfig staging dir.

CircleCI requires a package Makefile change to actually
do the CI check, so bump PKG_RELEASE.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
lang/python/python3/Makefile

index 2d950db6051a0f22c575fe86a17285c655a57e2b..ebe71b5559a240167a989c7462902186c6abb321 100644 (file)
@@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
 PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
 
 PKG_NAME:=python3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
@@ -197,6 +197,7 @@ endef
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
                $(1)/usr/include/
@@ -204,6 +205,10 @@ define Build/InstallDev
                $(HOST_PYTHON3_LIB_DIR) \
                $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \
                $(1)/usr/lib/
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/python3.pc \
+               $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/python-$(PYTHON3_VERSION).pc \
+               $(1)/usr/lib/pkgconfig
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config-$(PYTHON_VERSION) \
                $(1)/usr/lib/python$(PYTHON_VERSION)/