1SUMMARY = "Pixman: Pixel Manipulation library"
2DESCRIPTION = "Pixman provides a library for manipulating pixel regions \
3-- a set of Y-X banded rectangles, image compositing using the \
4Porter/Duff model and implicit mask generation for geometric primitives \
5including trapezoids, triangles, and rectangles."
6HOMEPAGE = "http://www.pixman.org"
7SECTION = "x11/libs"
8DEPENDS = "zlib"
9
10SRC_URI = "https://www.cairographics.org/releases/${BP}.tar.gz"
11SRC_URI[sha256sum] = "6349061ce1a338ab6952b92194d1b0377472244208d47ff25bef86fc71973466"
12
13# see http://cairographics.org/releases/ - only even minor versions are stable
14UPSTREAM_CHECK_REGEX = "pixman-(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)"
15
16PE = "1"
17
18LICENSE = "MIT & PD"
19LIC_FILES_CHKSUM = "file://COPYING;md5=14096c769ae0cbb5fcb94ec468be11b3 \
20                    file://pixman/pixman-matrix.c;endline=21;md5=4a018dff3e4e25302724c88ff95c2456 \
21                    file://pixman/pixman-arm-neon-asm.h;endline=24;md5=9a9cc1e51abbf1da58f4d9528ec9d49b \
22                   "
23
24inherit meson pkgconfig
25
26# These are for the tests and demos, which we don't install
27EXTRA_OEMESON = "-Dgtk=disabled -Dlibpng=disabled"
28# ld: pixman/libpixman-mmx.a(pixman-mmx.c.o):
29# linking mips:loongson_2f module with previous mips:isa64 modules
30EXTRA_OEMESON += "-Dloongson-mmi=disabled"
31
32EXTRA_OEMESON:append:class-target:powerpc = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "-Dvmx=enabled", "-Dvmx=disabled", d)}"
33EXTRA_OEMESON:append:class-target:powerpc64 = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "-Dvmx=enabled", "-Dvmx=disabled", d)}"
34EXTRA_OEMESON:append:class-target:powerpc64le = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "-Dvmx=enabled", "-Dvmx=disabled", d)}"
35
36EXTRA_OEMESON:append:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon",""," -Dneon=disabled",d)}"
37EXTRA_OEMESON:append:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon",""," -Dneon=disabled",d)}"
38
39EXTRA_OEMESON:append:class-native = " -Dopenmp=disabled"
40
41BBCLASSEXTEND = "native nativesdk"
42
43CVE_STATUS[CVE-2023-37769] = "not-applicable-config: stress-test is an uninstalled test"
44