2 # Copyright © 1997-2011 by Secret Labs AB
3 # Copyright © 1995-2011 by Fredrik Lundh
4 # Copyright © 2016 by Alex Clark and contributors
7 include $(TOPDIR
)/rules.mk
14 PKG_HASH
:=bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1
16 PKG_MAINTAINER
:=Alexandru Ardelean
<ardeleanalex@gmail.com
>
18 PKG_LICENSE_FILES
:=LICENSE
19 PKG_CPE_ID
:=cpe
:/a
:python
:pillow
22 include $(INCLUDE_DIR
)/package.mk
23 include ..
/python3-package.mk
25 define Package
/python3-pillow
29 TITLE
:=The friendly PIL fork
30 URL
:=https
://python-pillow.org
/
31 DEPENDS
:=+libfreetype
+libjpeg
+libtiff
+zlib \
35 define Package
/python3-pillow
/description
39 PYTHON3_PKG_BUILD_CONFIG_SETTINGS
+= \
40 --build-option
=build_ext \
41 --build-option
=--enable-zlib \
42 --build-option
=--enable-jpeg \
43 --build-option
=--enable-webp \
44 --build-option
=--enable-webpmux \
45 --build-option
=--enable-tiff \
46 --build-option
=--enable-freetype \
47 --build-option
=--disable-lcms \
48 --build-option
=--disable-jpeg2000 \
49 --build-option
=--disable-imagequant \
50 --build-option
=--disable-platform-guessing
52 $(eval
$(call Py3Package
,python3-pillow
))
53 $(eval
$(call BuildPackage
,python3-pillow
))
54 $(eval
$(call BuildPackage
,python3-pillow-src
))