This commit is contained in:
TriForceX
2021-03-13 22:13:38 -03:00
parent c77595adbd
commit b3ecc6e32d
7043 changed files with 119377 additions and 73694 deletions

View File

@@ -14,4 +14,16 @@ PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
ifeq ($(BR2_PACKAGE_PYTHON),y)
PYTHON_LIBCONFIG_PYVER = $(PYTHON_VERSION_MAJOR)
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
PYTHON_LIBCONFIG_PYVER = $(PYTHON3_VERSION_MAJOR)
endif
define PYTHON_LIBCONFIG_FIX_SETUP
$(SED) 's/boost_python/boost_python$(subst .,,$(PYTHON_LIBCONFIG_PYVER))/g' \
$(@D)/setup.py
endef
PYTHON_LIBCONFIG_POST_PATCH_HOOKS += PYTHON_LIBCONFIG_FIX_SETUP
$(eval $(python-package))