mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-22 10:32:10 +00:00
First commit of Shredos v2021.08.2_19_x86-64_0.32.014
This commit is contained in:
29
package/python-libconfig/python-libconfig.mk
Normal file
29
package/python-libconfig/python-libconfig.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-libconfig
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_LIBCONFIG_VERSION = b271c3d9dac938ad5cd29b67bd08cc5536a5a391
|
||||
PYTHON_LIBCONFIG_SITE = $(call github,cnangel,python-libconfig,$(PYTHON_LIBCONFIG_VERSION))
|
||||
|
||||
PYTHON_LIBCONFIG_LICENSE = BSD
|
||||
PYTHON_LIBCONFIG_LICENSE_FILES = README
|
||||
|
||||
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))
|
||||
Reference in New Issue
Block a user