2016-04-28 22:22:04 +00:00
|
|
|
#
|
|
|
|
# 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
|
2019-10-29 09:34:36 +00:00
|
|
|
PKG_VERSION:=6.2.1
|
2019-03-04 11:54:30 +00:00
|
|
|
PKG_RELEASE:=1
|
2018-10-20 22:18:10 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
PYPI_NAME:=Pillow
|
2019-10-29 09:34:36 +00:00
|
|
|
PKG_HASH:=bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1
|
2018-10-20 22:18:10 +00:00
|
|
|
|
2019-03-04 11:54:30 +00:00
|
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
PKG_LICENSE:=HPND
|
2016-04-28 22:22:04 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2019-09-19 14:07:09 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:python:pillow
|
2016-04-28 22:22:04 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
include ../pypi.mk
|
2016-04-28 22:22:04 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2018-01-10 07:56:52 +00:00
|
|
|
include ../python-package.mk
|
2019-03-04 11:54:30 +00:00
|
|
|
include ../python3-package.mk
|
|
|
|
|
|
|
|
define Package/python-pillow/Default
|
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=The friendly PIL fork
|
|
|
|
URL:=https://python-pillow.org/
|
|
|
|
DEPENDS:=+libfreetype +libjpeg +libtiff +zlib
|
|
|
|
endef
|
2016-04-28 22:22:04 +00:00
|
|
|
|
2019-03-04 11:54:30 +00:00
|
|
|
define Package/python-pillow
|
|
|
|
$(call Package/python-pillow/Default)
|
|
|
|
DEPENDS+=+PACKAGE_python-pillow:python
|
|
|
|
VARIANT:=python
|
2016-04-28 22:22:04 +00:00
|
|
|
endef
|
|
|
|
|
2019-03-04 11:54:30 +00:00
|
|
|
define Package/python-pillow/description
|
|
|
|
The friendly PIL fork
|
2016-04-28 22:22:04 +00:00
|
|
|
endef
|
|
|
|
|
2019-03-04 11:54:30 +00:00
|
|
|
define Package/python3-pillow
|
|
|
|
$(call Package/python-pillow/Default)
|
|
|
|
DEPENDS+=+PACKAGE_python3-pillow:python3
|
|
|
|
VARIANT:=python3
|
2016-04-28 22:22:04 +00:00
|
|
|
endef
|
|
|
|
|
2019-03-04 11:54:30 +00:00
|
|
|
define Package/python3-pillow/description
|
|
|
|
$(call Package/python-pillow/description)
|
|
|
|
.
|
|
|
|
(Variant for Python3)
|
2016-04-28 22:22:04 +00:00
|
|
|
endef
|
|
|
|
|
2019-03-04 11:54:30 +00:00
|
|
|
PYTHON3_PKG_SETUP_GLOBAL_ARGS += build_ext \
|
|
|
|
--enable-zlib \
|
|
|
|
--enable-jpeg \
|
|
|
|
--enable-tiff \
|
|
|
|
--enable-freetype \
|
|
|
|
--disable-lcms \
|
|
|
|
--disable-webp \
|
|
|
|
--disable-webpmux \
|
|
|
|
--disable-jpeg2000 \
|
|
|
|
--disable-imagequant \
|
|
|
|
--disable-platform-guessing
|
|
|
|
|
|
|
|
PYTHON_PKG_SETUP_GLOBAL_ARGS:=$(PYTHON3_PKG_SETUP_GLOBAL_ARGS)
|
|
|
|
|
|
|
|
$(eval $(call PyPackage,python-pillow))
|
|
|
|
$(eval $(call BuildPackage,python-pillow))
|
|
|
|
$(eval $(call BuildPackage,python-pillow-src))
|
|
|
|
|
|
|
|
$(eval $(call Py3Package,python3-pillow))
|
|
|
|
$(eval $(call BuildPackage,python3-pillow))
|
|
|
|
$(eval $(call BuildPackage,python3-pillow-src))
|