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.

52 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:=8.0.1
  9. PKG_RELEASE:=1
  10. PYPI_NAME:=Pillow
  11. PKG_HASH:=11c5c6e9b02c9dac08af04f093eb5a2f84857df70a7d4a6a6ad461aca803fb9e
  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 +python3
  26. endef
  27. define Package/python3-pillow/description
  28. The friendly PIL fork
  29. endef
  30. PYTHON3_PKG_SETUP_GLOBAL_ARGS += build_ext \
  31. --enable-zlib \
  32. --enable-jpeg \
  33. --enable-tiff \
  34. --enable-freetype \
  35. --disable-lcms \
  36. --disable-webp \
  37. --disable-webpmux \
  38. --disable-jpeg2000 \
  39. --disable-imagequant \
  40. --disable-platform-guessing
  41. $(eval $(call Py3Package,python3-pillow))
  42. $(eval $(call BuildPackage,python3-pillow))
  43. $(eval $(call BuildPackage,python3-pillow-src))