mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-19 05:43:51 -09:00
Fixes:
http://autobuild.buildroot.net/results/977/977c043615603dd3541e23b81c5f11374606aff6/
Set environment variables to cross-compile friendly values, this prevents
icu-config picking up host libraries:
https://gitlab.pyicu.org/main/pyicu/-/blob/main/setup.py#L89
https://gitlab.pyicu.org/main/pyicu/-/blob/main/setup.py#L179
https://gitlab.pyicu.org/main/pyicu/-/blob/main/setup.py#L216
This follows the upstream build docs:
https://gitlab.pyicu.org/main/pyicu#building-pyicu
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit c15e60c106)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
22 lines
845 B
Makefile
22 lines
845 B
Makefile
################################################################################
|
|
#
|
|
# python-pyicu
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_PYICU_VERSION = 2.10.2
|
|
PYTHON_PYICU_SOURCE = PyICU-$(PYTHON_PYICU_VERSION).tar.gz
|
|
PYTHON_PYICU_SITE = https://files.pythonhosted.org/packages/64/00/a531e119a97e54601f616f5061879ec2d4bb058d225014f9acf94b2970c3
|
|
PYTHON_PYICU_LICENSE = MIT
|
|
PYTHON_PYICU_LICENSE_FILES = LICENSE
|
|
PYTHON_PYICU_DEPENDENCIES = icu
|
|
PYTHON_PYICU_SETUP_TYPE = setuptools
|
|
|
|
PYTHON_PYICU_ENV += \
|
|
ICU_VERSION="`$(PKG_CONFIG_HOST_BINARY) icu-i18n --modversion`" \
|
|
PYICU_CFLAGS="`$(PKG_CONFIG_HOST_BINARY) icu-i18n --variable=CXXFLAGS`" \
|
|
PYICU_LFLAGS="`$(PKG_CONFIG_HOST_BINARY) icu-i18n --libs-only-L` \
|
|
`$(PKG_CONFIG_HOST_BINARY) icu-i18n --libs-only-l`"
|
|
|
|
$(eval $(python-package))
|