blob: 5f5d53172e012d0b1f52c0e0b4f80b4e6aab1a2e [file] [log] [blame]
################################################################################
#
# python-matplotlib
#
################################################################################
PYTHON_MATPLOTLIB_VERSION = 3.8.2
PYTHON_MATPLOTLIB_SOURCE = matplotlib-$(PYTHON_MATPLOTLIB_VERSION).tar.gz
PYTHON_MATPLOTLIB_SITE = https://files.pythonhosted.org/packages/fb/ab/38a0e94cb01dacb50f06957c2bed1c83b8f9dac6618988a37b2487862944
PYTHON_MATPLOTLIB_LICENSE = Python-2.0
PYTHON_MATPLOTLIB_LICENSE_FILES = LICENSE/LICENSE
PYTHON_MATPLOTLIB_DEPENDENCIES = \
freetype \
host-pkgconf \
host-python-certifi \
host-python-numpy \
host-python-setuptools-scm \
libpng \
python-cycler \
python-pybind \
qhull
PYTHON_MATPLOTLIB_SETUP_TYPE = setuptools
PYTHON_MATPLOTLIB_BUILD_OPTS = --skip-dependency-check
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)/mplsetup.cfg
endef
PYTHON_MATPLOTLIB_PRE_CONFIGURE_HOOKS += PYTHON_MATPLOTLIB_COPY_SETUP_CFG
$(eval $(python-package))