first commit: base 2024.08

Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
tao89959
2025-02-12 17:59:29 +08:00
committed by maoxiaochuan
commit f3217a7708
14356 changed files with 572894 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
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
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
depends on BR2_HOST_GCC_AT_LEAST_9 # host-python-numpy
select BR2_PACKAGE_FREETYPE # runtime
select BR2_PACKAGE_LIBPNG # runtime
select BR2_PACKAGE_PYTHON_CERTIFI # runtime
select BR2_PACKAGE_PYTHON_CONTOURPY # runtime
select BR2_PACKAGE_PYTHON_CYCLER
select BR2_PACKAGE_PYTHON_PYBIND
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_PILLOW # 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++, gcc >= 9, host gcc >= 9"
depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) || \
!BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_9 || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_9
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/matplotlib/json
md5 72896b8c240903ebddc47be6451d813b matplotlib-3.8.2.tar.gz
sha256 01a978b871b881ee76017152f1f1a0cbf6bd5f7b8ff8c96df0df1bd57d8755a1 matplotlib-3.8.2.tar.gz
# Locally computed sha256 checksums
sha256 5a1a81ea301728c8bba2933da832c0cd62229daf20893a024ab3d53244468dbc LICENSE/LICENSE
@@ -0,0 +1,34 @@
################################################################################
#
# 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))
+10
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