1DESCRIPTION = "Python Imaging Library (Fork). Pillow is the friendly PIL fork by Alex \ 2Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and \ 3Contributors." 4HOMEPAGE = "https://pillow.readthedocs.io" 5LICENSE = "MIT-CMU" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=a1b708da743e3fc0e5c35e92daac0bf8" 7 8SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \ 9 file://0001-support-cross-compiling.patch \ 10 " 11SRCREV = "4c1aed801e43c6b307e7135279ca1dbc02bbf052" 12 13inherit python_setuptools_build_meta ptest-python-pytest 14 15PTEST_PYTEST_DIR = "Tests" 16 17PEP517_BUILD_OPTS += " \ 18 -C platform-guessing=disable \ 19 -C zlib=enable \ 20 -C jpeg=enable \ 21 -C tiff=enable \ 22 -C freetype=enable \ 23 -C lcms=enable \ 24 -C jpeg2000=enable \ 25 -C webp=disable \ 26 -C webpmux=disable \ 27 -C imagequant=disable \ 28" 29 30DEPENDS += " \ 31 zlib \ 32 jpeg \ 33 tiff \ 34 freetype \ 35 lcms \ 36 openjpeg \ 37" 38 39RDEPENDS:${PN} += " \ 40 python3-misc \ 41 python3-logging \ 42 python3-numbers \ 43 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb', '', d)} \ 44" 45# python3-compile for filecmp module 46RDEPENDS:${PN}-ptest += " \ 47 bash \ 48 ghostscript \ 49 jpeg-tools \ 50 libwebp \ 51 python3-compile \ 52 python3-core \ 53 python3-image \ 54 python3-mmap \ 55 python3-pytest-timeout \ 56 python3-resource \ 57 python3-unixadmin\ 58 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ 59" 60 61CVE_PRODUCT = "pillow" 62 63S = "${WORKDIR}/git" 64 65RPROVIDES:${PN} += "python3-imaging" 66 67BBCLASSEXTEND = "native" 68