summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
new file mode 100644
index 0000000000..f9eb79ff1c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
@@ -0,0 +1,52 @@
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"
9LIC_FILES_CHKSUM = "\
10 file://setup.py;beginline=296;endline=296;md5=20e7ab4d2b2b1395a0e4ab800181eb96 \
11 file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74 \
12"
13
14DEPENDS = "\
15 freetype \
16 libpng \
17 ${PYTHON_PN}-numpy-native \
18 ${PYTHON_PN}-pip-native \
19 ${PYTHON_PN}-dateutil-native \
20 ${PYTHON_PN}-pytz-native \
21 ${PYTHON_PN}-certifi-native \
22"
23
24SRC_URI[sha256sum] = "b2e9810e09c3a47b73ce9cab5a72243a1258f61e7900969097a817232246ce1c"
25
26inherit pypi setuptools3 pkgconfig
27
28# LTO with clang needs lld
29LDFLAGS:append:toolchain-clang = " -fuse-ld=lld"
30LDFLAGS:remove:toolchain-clang:mips = "-fuse-ld=lld"
31
32RDEPENDS:${PN} = "\
33 freetype \
34 libpng \
35 ${PYTHON_PN}-numpy \
36 ${PYTHON_PN}-pyparsing \
37 ${PYTHON_PN}-cycler \
38 ${PYTHON_PN}-dateutil \
39 ${PYTHON_PN}-kiwisolver \
40 ${PYTHON_PN}-pytz \
41"
42
43ENABLELTO:toolchain-clang:riscv64 = "echo enable_lto = False >> ${S}/setup.cfg"
44ENABLELTO:toolchain-clang:riscv32 = "echo enable_lto = False >> ${S}/setup.cfg"
45ENABLELTO:toolchain-clang:mips = "echo enable_lto = False >> ${S}/setup.cfg"
46do_compile:prepend() {
47 echo [libs] > ${S}/setup.cfg
48 echo system_freetype = true >> ${S}/setup.cfg
49 ${ENABLELTO}
50}
51
52BBCLASSEXTEND = "native"