23ca2efef1
- Remove upstreamed patches - Add BR2_PACKAGE_PYTHON_CERTIFI and BR2_PACKAGE_QHULL as dependencies - make DEPENDENCIES one per line and sort alphabetically - Add a new file: setup.cfg. This file is needed to force matplotlib to use the system-provided freetype and qhull, and to disable lto. The setup.cfg file is copied to the source directory before configuring. LTO must be disabled or else compile errors such as: "Relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZSt3hexRSt8ios_base' which may bind externally can not be used when making a shared object; recompile with -fPIC" Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
32 lines
1004 B
Makefile
32 lines
1004 B
Makefile
################################################################################
|
|
#
|
|
# python-matplotlib
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_MATPLOTLIB_VERSION = 3.4.3
|
|
PYTHON_MATPLOTLIB_SOURCE = matplotlib-$(PYTHON_MATPLOTLIB_VERSION).tar.gz
|
|
PYTHON_MATPLOTLIB_SITE = https://files.pythonhosted.org/packages/21/37/197e68df384ff694f78d687a49ad39f96c67b8d75718bc61503e1676b617
|
|
PYTHON_MATPLOTLIB_LICENSE = Python-2.0
|
|
PYTHON_MATPLOTLIB_LICENSE_FILES = LICENSE/LICENSE
|
|
PYTHON_MATPLOTLIB_DEPENDENCIES = \
|
|
freetype \
|
|
host-pkgconf \
|
|
host-python-certifi \
|
|
host-python-numpy \
|
|
libpng \
|
|
python-cycler \
|
|
qhull
|
|
PYTHON_MATPLOTLIB_SETUP_TYPE = setuptools
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON_MATPLOTLIB_QT),y)
|
|
PYTHON_MATPLOTLIB_DEPENDENCIES += python-pyqt5
|
|
endif
|
|
|
|
define PYTHON_MATPLOTLIB_COPY_SETUP_CFG
|
|
cp $(PYTHON_MATPLOTLIB_PKGDIR)/setup.cfg $(@D)/setup.cfg
|
|
endef
|
|
PYTHON_MATPLOTLIB_PRE_CONFIGURE_HOOKS += PYTHON_MATPLOTLIB_COPY_SETUP_CFG
|
|
|
|
$(eval $(python-package))
|