Files
packages/lang/python/pillow/Makefile
Jeffery To 1a3df95f7e python-packages: Replace --global-option with --build-option
setuptools 64.0.0 deprecated the use of --global-option to pass build
parameters[1]. This replaces the use of --global-option with
--build-option.

[1]: https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b76fa19b26)
2023-05-28 15:47:24 +03:00

55 lines
1.4 KiB
Makefile

#
# Copyright © 1997-2011 by Secret Labs AB
# Copyright © 1995-2011 by Fredrik Lundh
# Copyright © 2016 by Alex Clark and contributors
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pillow
PKG_VERSION:=9.5.0
PKG_RELEASE:=2
PYPI_NAME:=Pillow
PKG_HASH:=bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=HPND
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:python:pillow
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-pillow
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=The friendly PIL fork
URL:=https://python-pillow.org/
DEPENDS:=+libfreetype +libjpeg +libtiff +zlib \
+libwebp +python3
endef
define Package/python3-pillow/description
The friendly PIL fork
endef
PYTHON3_PKG_BUILD_CONFIG_SETTINGS += \
--build-option=build_ext \
--build-option=--enable-zlib \
--build-option=--enable-jpeg \
--build-option=--enable-webp \
--build-option=--enable-webpmux \
--build-option=--enable-tiff \
--build-option=--enable-freetype \
--build-option=--disable-lcms \
--build-option=--disable-jpeg2000 \
--build-option=--disable-imagequant \
--build-option=--disable-platform-guessing
$(eval $(call Py3Package,python3-pillow))
$(eval $(call BuildPackage,python3-pillow))
$(eval $(call BuildPackage,python3-pillow-src))