1 ################################################################################
5 ################################################################################
7 PYTHON_PILLOW_VERSION
= 4.0.0
8 PYTHON_PILLOW_SOURCE
= Pillow-
$(PYTHON_PILLOW_VERSION
).
tar.gz
9 PYTHON_PILLOW_SITE
= https
://pypi.python.org
/packages
/8d
/80/eca7a2d1a3c2dafb960f32f844d570de988e609f5fd17de92e1cf6a01b0a
10 PYTHON_PILLOW_LICENSE
= PIL Software License
11 PYTHON_PILLOW_LICENSE_FILES
= LICENSE
12 PYTHON_PILLOW_SETUP_TYPE
= setuptools
13 PYTHON_PILLOW_BUILD_OPTS
= --disable-platform-guessing
15 ifeq ($(BR2_PACKAGE_FREETYPE
),y
)
16 PYTHON_PILLOW_DEPENDENCIES
+= freetype
17 PYTHON_PILLOW_BUILD_OPTS
+= --enable-freetype
19 PYTHON_PILLOW_BUILD_OPTS
+= --disable-freetype
22 ifeq ($(BR2_PACKAGE_JPEG
),y
)
23 PYTHON_PILLOW_DEPENDENCIES
+= jpeg
24 PYTHON_PILLOW_BUILD_OPTS
+= --enable-jpeg
26 PYTHON_PILLOW_BUILD_OPTS
+= --disable-jpeg
29 ifeq ($(BR2_PACKAGE_OPENJPEG
),y
)
30 PYTHON_PILLOW_DEPENDENCIES
+= openjpeg
31 PYTHON_PILLOW_BUILD_OPTS
+= --enable-jpeg2000
33 PYTHON_PILLOW_BUILD_OPTS
+= --disable-jpeg2000
36 ifeq ($(BR2_PACKAGE_TIFF
),y
)
37 PYTHON_PILLOW_DEPENDENCIES
+= tiff
38 PYTHON_PILLOW_BUILD_OPTS
+= --enable-tiff
40 PYTHON_PILLOW_BUILD_OPTS
+= --disable-tiff
43 ifeq ($(BR2_PACKAGE_WEBP
),y
)
44 PYTHON_PILLOW_DEPENDENCIES
+= webp
45 PYTHON_PILLOW_BUILD_OPTS
+= --enable-webp
47 PYTHON_PILLOW_BUILD_OPTS
+= --disable-webp
50 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
51 PYTHON_PILLOW_DEPENDENCIES
+= zlib
52 PYTHON_PILLOW_BUILD_OPTS
+= --enable-zlib
54 PYTHON_PILLOW_BUILD_OPTS
+= --disable-zlib
57 define PYTHON_PILLOW_BUILD_CMDS
58 cd
$(PYTHON_PILLOW_BUILDDIR
); \
59 $(PYTHON_PILLOW_BASE_ENV
) $(PYTHON_PILLOW_ENV
) \
60 $(PYTHON_PILLOW_PYTHON_INTERPRETER
) setup.py build_ext \
61 $(PYTHON_PILLOW_BASE_BUILD_OPTS
) $(PYTHON_PILLOW_BUILD_OPTS
)
64 define PYTHON_PILLOW_INSTALL_TARGET_CMDS
65 cd
$(PYTHON_PILLOW_BUILDDIR
); \
66 $(PYTHON_PILLOW_BASE_ENV
) $(PYTHON_PILLOW_ENV
) \
67 $(PYTHON_PILLOW_PYTHON_INTERPRETER
) setup.py build_ext \
68 $(PYTHON_PILLOW_BUILD_OPTS
) install \
69 $(PYTHON_PILLOW_BASE_INSTALL_TARGET_OPTS
) \
70 $(PYTHON_PILLOW_INSTALL_TARGET_OPTS
)
73 $(eval
$(python-package
))