packages/lang/python/pillow/Makefile
Alexandru Ardelean 94cdf89269 pillow: add webp support
Requested via: https://github.com/openwrt/packages/pull/16732

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-09-30 14:29:13 -07:00

53 lines
1.2 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:=8.3.2
PKG_RELEASE:=$(AUTORELEASE)
PYPI_NAME:=Pillow
PKG_HASH:=dde3f3ed8d00c72631bc19cbfff8ad3b6215062a5eed402381ad365f82f0c18c
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_SETUP_GLOBAL_ARGS += build_ext \
--enable-zlib \
--enable-jpeg \
--enable-webp \
--enable-webpmux \
--enable-tiff \
--enable-freetype \
--disable-lcms \
--disable-jpeg2000 \
--disable-imagequant \
--disable-platform-guessing
$(eval $(call Py3Package,python3-pillow))
$(eval $(call BuildPackage,python3-pillow))
$(eval $(call BuildPackage,python3-pillow-src))