[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,40 @@
config BR2_PACKAGE_PYTHON_MATPLOTLIB
bool "python-matplotlib"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
select BR2_PACKAGE_FREETYPE # runtime
select BR2_PACKAGE_LIBPNG # runtime
select BR2_PACKAGE_PYTHON_CERTIFI # runtime
select BR2_PACKAGE_PYTHON_CYCLER
select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
select BR2_PACKAGE_PYTHON_KIWISOLVER # runtime
select BR2_PACKAGE_PYTHON_NUMPY # runtime
select BR2_PACKAGE_PYTHON_PYPARSING # runtime
select BR2_PACKAGE_PYTHON3_ZLIB # runtime
select BR2_PACKAGE_QHULL
select BR2_PACKAGE_ZLIB # runtime
help
Matplotlib strives to produce publication quality 2D
graphics for interactive graphing, scientific publishing,
user interface development and web application servers
targeting multiple user interfaces and hardcopy output
formats.
https://matplotlib.org/
if BR2_PACKAGE_PYTHON_MATPLOTLIB
config BR2_PACKAGE_PYTHON_MATPLOTLIB_QT
bool "qt display"
depends on BR2_PACKAGE_QT5 # python-pyqt5
select BR2_PACKAGE_PYTHON_PYQT5
select BR2_PACKAGE_QT5BASE_FONTCONFIG
select BR2_PACKAGE_QT5BASE_WIDGETS
endif
comment "python-matplotlib needs a glibc or musl toolchain w/ C++"
depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) || \
!BR2_INSTALL_LIBSTDCPP

View File

@ -0,0 +1,4 @@
# sha256 from https://pypi.org/project/matplotlib/#files
sha256 fc4f526dfdb31c9bd6b8ca06bf9fab663ca12f3ec9cdf4496fb44bc680140318 matplotlib-3.4.3.tar.gz
# Locally computed sha256 checksums
sha256 5a1a81ea301728c8bba2933da832c0cd62229daf20893a024ab3d53244468dbc LICENSE/LICENSE

View File

@ -0,0 +1,31 @@
################################################################################
#
# 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))

View File

@ -0,0 +1,10 @@
[libs]
# Disable LTO to prevent the following error:
# 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
enable_lto = False
# Freetype and qhull are provided by Buildroot
system_freetype = True
system_qhull = True