summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-matplotlib_3.6.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-matplotlib_3.6.3.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-matplotlib_3.6.3.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.6.3.bb b/meta-python/recipes-devtools/python/python3-matplotlib_3.6.3.bb
new file mode 100644
index 0000000000..809f9425ba
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.6.3.bb
@@ -0,0 +1,66 @@
1SUMMARY = "matplotlib: plotting with Python"
2DESCRIPTION = "\
3Matplotlib is a Python 2D plotting library which produces \
4publication-quality figures in a variety of hardcopy formats \
5and interactive environments across platforms."
6HOMEPAGE = "https://github.com/matplotlib/matplotlib"
7SECTION = "devel/python"
8LICENSE = "PSF-2.0"
9LIC_FILES_CHKSUM = "\
10 file://setup.py;beginline=283;endline=283;md5=20e7ab4d2b2b1395a0e4ab800181eb96 \
11 file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74 \
12"
13
14DEPENDS = "\
15 freetype \
16 libpng \
17 python3-numpy-native \
18 python3-pip-native \
19 python3-dateutil-native \
20 python3-pytz-native \
21 python3-certifi-native \
22 python3-setuptools-scm-native \
23"
24SRC_URI[sha256sum] = "1f4d69707b1677560cd952544ee4962f68ff07952fb9069ff8c12b56353cb8c9"
25
26inherit pypi setuptools3 pkgconfig
27
28# Stop the component from attempting to download when it detects a missing
29# dependency
30SRC_URI += "file://matplotlib-disable-download.patch"
31
32# This python module requires a full copy of freetype-2.6.1
33SRC_URI += "https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz;name=freetype;subdir=matplotlib-${PV}/build"
34SRC_URI[freetype.sha256sum] = "0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014"
35
36# This python module requires a full copy of 'qhull-2020'
37SRC_URI += "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz;name=qhull;subdir=matplotlib-${PV}/build"
38SRC_URI[qhull.sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e"
39
40# LTO with clang needs lld
41LDFLAGS:append:toolchain-clang = " -fuse-ld=lld"
42LDFLAGS:remove:toolchain-clang:mips = "-fuse-ld=lld"
43RDEPENDS:${PN} = "\
44 freetype \
45 libpng \
46 python3-numpy \
47 python3-pyparsing \
48 python3-cycler \
49 python3-dateutil \
50 python3-kiwisolver \
51 python3-pytz \
52 python3-pillow \
53 python3-packaging \
54"
55
56ENABLELTO:toolchain-clang:riscv64 = "echo enable_lto = False >> ${S}/mplsetup.cfg"
57ENABLELTO:toolchain-clang:riscv32 = "echo enable_lto = False >> ${S}/mplsetup.cfg"
58ENABLELTO:toolchain-clang:mips = "echo enable_lto = False >> ${S}/mplsetup.cfg"
59
60do_compile:prepend() {
61 echo [libs] > ${S}/mplsetup.cfg
62 echo system_freetype = True >> ${S}/mplsetup.cfg
63 ${ENABLELTO}
64}
65
66BBCLASSEXTEND = "native"