diff options
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.bb | 52 |
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 @@ | |||
1 | SUMMARY = "matplotlib: plotting with Python" | ||
2 | DESCRIPTION = "\ | ||
3 | Matplotlib is a Python 2D plotting library which produces \ | ||
4 | publication-quality figures in a variety of hardcopy formats \ | ||
5 | and interactive environments across platforms." | ||
6 | HOMEPAGE = "https://github.com/matplotlib/matplotlib" | ||
7 | SECTION = "devel/python" | ||
8 | LICENSE = "PSF" | ||
9 | LIC_FILES_CHKSUM = "\ | ||
10 | file://setup.py;beginline=296;endline=296;md5=20e7ab4d2b2b1395a0e4ab800181eb96 \ | ||
11 | file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74 \ | ||
12 | " | ||
13 | |||
14 | DEPENDS = "\ | ||
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 | |||
24 | SRC_URI[sha256sum] = "b2e9810e09c3a47b73ce9cab5a72243a1258f61e7900969097a817232246ce1c" | ||
25 | |||
26 | inherit pypi setuptools3 pkgconfig | ||
27 | |||
28 | # LTO with clang needs lld | ||
29 | LDFLAGS:append:toolchain-clang = " -fuse-ld=lld" | ||
30 | LDFLAGS:remove:toolchain-clang:mips = "-fuse-ld=lld" | ||
31 | |||
32 | RDEPENDS:${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 | |||
43 | ENABLELTO:toolchain-clang:riscv64 = "echo enable_lto = False >> ${S}/setup.cfg" | ||
44 | ENABLELTO:toolchain-clang:riscv32 = "echo enable_lto = False >> ${S}/setup.cfg" | ||
45 | ENABLELTO:toolchain-clang:mips = "echo enable_lto = False >> ${S}/setup.cfg" | ||
46 | do_compile:prepend() { | ||
47 | echo [libs] > ${S}/setup.cfg | ||
48 | echo system_freetype = true >> ${S}/setup.cfg | ||
49 | ${ENABLELTO} | ||
50 | } | ||
51 | |||
52 | BBCLASSEXTEND = "native" | ||