mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 05:23:39 +08:00
d082c8ad4b
The python-sip package requires distutils which is no longer included with python but is now part of setuptools. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# python-sip
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_SIP_VERSION = 4.19.25
|
|
PYTHON_SIP_SOURCE = sip-$(PYTHON_SIP_VERSION).tar.gz
|
|
PYTHON_SIP_SITE = https://www.riverbankcomputing.com/static/Downloads/sip/$(PYTHON_SIP_VERSION)
|
|
PYTHON_SIP_LICENSE = SIP license or GPL-2.0 or GPL-3.0
|
|
PYTHON_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3
|
|
PYTHON_SIP_DEPENDENCIES = host-python-setuptools python3 qt5base
|
|
HOST_PYTHON_SIP_DEPENDENCIES = host-python3 host-python-setuptools
|
|
|
|
define HOST_PYTHON_SIP_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(HOST_DIR)/bin/python configure.py)
|
|
endef
|
|
|
|
define HOST_PYTHON_SIP_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define HOST_PYTHON_SIP_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) install -C $(@D)
|
|
endef
|
|
|
|
define PYTHON_SIP_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(HOST_DIR)/bin/python configure.py \
|
|
--bindir $(TARGET_DIR)/usr/bin \
|
|
--destdir $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
|
--incdir $(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
|
--sipdir $(TARGET_DIR)/usr/share/sip \
|
|
--sysroot $(STAGING_DIR)/usr \
|
|
--no-stubs \
|
|
--use-qmake && \
|
|
$(HOST_DIR)/bin/qmake)
|
|
endef
|
|
|
|
define PYTHON_SIP_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define PYTHON_SIP_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) install -C $(@D)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|