e4625ae8d5
- Fix numerous CVEs:
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#security
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html#security
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html#security
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.0.html#security
- Update license to HPND:
81078e8a0d
https://pillow.readthedocs.io/en/stable/releasenotes/index.html
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
90 lines
2.6 KiB
Makefile
90 lines
2.6 KiB
Makefile
################################################################################
|
|
#
|
|
# python-pillow
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_PILLOW_VERSION = 8.2.0
|
|
PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/21/23/af6bac2a601be6670064a817273d4190b79df6f74d8012926a39bc7aa77f
|
|
PYTHON_PILLOW_SOURCE = Pillow-$(PYTHON_PILLOW_VERSION).tar.gz
|
|
PYTHON_PILLOW_LICENSE = HPND
|
|
PYTHON_PILLOW_LICENSE_FILES = LICENSE
|
|
PYTHON_PILLOW_CPE_ID_VENDOR = python
|
|
PYTHON_PILLOW_CPE_ID_PRODUCT = pillow
|
|
PYTHON_PILLOW_SETUP_TYPE = setuptools
|
|
PYTHON_PILLOW_BUILD_OPTS = --disable-platform-guessing
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += freetype
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-freetype
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-freetype
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += jpeg
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-jpeg
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-jpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += lcms2
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-lcms
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-lcms
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXCB),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += libxcb
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-xcb
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-xcb
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += openjpeg
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-jpeg2000
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-jpeg2000
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += tiff
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-tiff
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-tiff
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WEBP),y)
|
|
PYTHON_PILLOW_DEPENDENCIES += webp
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-webp
|
|
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
|
|
PYTHON_PILLOW_BUILD_OPTS += --enable-webpmux
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-webpmux
|
|
endif
|
|
else
|
|
PYTHON_PILLOW_BUILD_OPTS += --disable-webp --disable-webpmux
|
|
endif
|
|
|
|
define PYTHON_PILLOW_BUILD_CMDS
|
|
cd $(PYTHON_PILLOW_BUILDDIR); \
|
|
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
|
$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
|
|
$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
|
|
$(PYTHON_PILLOW_BASE_BUILD_OPTS) $(PYTHON_PILLOW_BUILD_OPTS)
|
|
endef
|
|
|
|
define PYTHON_PILLOW_INSTALL_TARGET_CMDS
|
|
cd $(PYTHON_PILLOW_BUILDDIR); \
|
|
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
|
$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
|
|
$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
|
|
$(PYTHON_PILLOW_BUILD_OPTS) install \
|
|
$(PYTHON_PILLOW_BASE_INSTALL_TARGET_OPTS) \
|
|
$(PYTHON_PILLOW_INSTALL_TARGET_OPTS)
|
|
endef
|
|
|
|
$(eval $(python-package))
|