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.

77 lines
1.8 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:=6.2.1
  9. PKG_RELEASE:=1
  10. PYPI_NAME:=Pillow
  11. PKG_HASH:=bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1
  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 ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-pillow/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=The friendly PIL fork
  25. URL:=https://python-pillow.org/
  26. DEPENDS:=+libfreetype +libjpeg +libtiff +zlib
  27. endef
  28. define Package/python-pillow
  29. $(call Package/python-pillow/Default)
  30. DEPENDS+=+PACKAGE_python-pillow:python
  31. VARIANT:=python
  32. endef
  33. define Package/python-pillow/description
  34. The friendly PIL fork
  35. endef
  36. define Package/python3-pillow
  37. $(call Package/python-pillow/Default)
  38. DEPENDS+=+PACKAGE_python3-pillow:python3
  39. VARIANT:=python3
  40. endef
  41. define Package/python3-pillow/description
  42. $(call Package/python-pillow/description)
  43. .
  44. (Variant for Python3)
  45. endef
  46. PYTHON3_PKG_SETUP_GLOBAL_ARGS += build_ext \
  47. --enable-zlib \
  48. --enable-jpeg \
  49. --enable-tiff \
  50. --enable-freetype \
  51. --disable-lcms \
  52. --disable-webp \
  53. --disable-webpmux \
  54. --disable-jpeg2000 \
  55. --disable-imagequant \
  56. --disable-platform-guessing
  57. PYTHON_PKG_SETUP_GLOBAL_ARGS:=$(PYTHON3_PKG_SETUP_GLOBAL_ARGS)
  58. $(eval $(call PyPackage,python-pillow))
  59. $(eval $(call BuildPackage,python-pillow))
  60. $(eval $(call BuildPackage,python-pillow-src))
  61. $(eval $(call Py3Package,python3-pillow))
  62. $(eval $(call BuildPackage,python3-pillow))
  63. $(eval $(call BuildPackage,python3-pillow-src))