You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  1. #
  2. # Copyright © 1997-2011 by Secret Labs AB
  3. # Copyright © 1995-2011 by Fredrik Lundh
  4. # Copyright © 2016 by Alex Clark and contributors
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=pillow
  8. PKG_VERSION:=9.0.1
  9. PKG_RELEASE:=$(AUTORELEASE)
  10. PYPI_NAME:=Pillow
  11. PKG_HASH:=6c8bc8238a7dfdaf7a75f5ec5a663f4173f8c367e5a39f87e720495e1eed75fa
  12. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  13. PKG_LICENSE:=HPND
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_CPE_ID:=cpe:/a:python:pillow
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/python3-pillow
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=The friendly PIL fork
  24. URL:=https://python-pillow.org/
  25. DEPENDS:=+libfreetype +libjpeg +libtiff +zlib \
  26. +libwebp +python3
  27. endef
  28. define Package/python3-pillow/description
  29. The friendly PIL fork
  30. endef
  31. PYTHON3_PKG_SETUP_GLOBAL_ARGS += build_ext \
  32. --enable-zlib \
  33. --enable-jpeg \
  34. --enable-webp \
  35. --enable-webpmux \
  36. --enable-tiff \
  37. --enable-freetype \
  38. --disable-lcms \
  39. --disable-jpeg2000 \
  40. --disable-imagequant \
  41. --disable-platform-guessing
  42. $(eval $(call Py3Package,python3-pillow))
  43. $(eval $(call BuildPackage,python3-pillow))
  44. $(eval $(call BuildPackage,python3-pillow-src))