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.

79 lines
2.0 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.1.0
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=Pillow-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/Pillow
  12. PKG_HASH:=0804f77cb1e9b6dbd37601cee11283bba39a8d44b9ddb053400c58e0c0d7d9de
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-Pillow-$(PKG_VERSION)
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. PKG_LICENSE:=HPND
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  21. define Package/python-pillow/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=The friendly PIL fork
  26. URL:=https://python-pillow.org/
  27. DEPENDS:=+libfreetype +libjpeg +libtiff +zlib
  28. endef
  29. define Package/python-pillow
  30. $(call Package/python-pillow/Default)
  31. DEPENDS+=+PACKAGE_python-pillow:python
  32. VARIANT:=python
  33. endef
  34. define Package/python-pillow/description
  35. The friendly PIL fork
  36. endef
  37. define Package/python3-pillow
  38. $(call Package/python-pillow/Default)
  39. DEPENDS+=+PACKAGE_python3-pillow:python3
  40. VARIANT:=python3
  41. endef
  42. define Package/python3-pillow/description
  43. $(call Package/python-pillow/description)
  44. .
  45. (Variant for Python3)
  46. endef
  47. PYTHON3_PKG_SETUP_GLOBAL_ARGS += build_ext \
  48. --enable-zlib \
  49. --enable-jpeg \
  50. --enable-tiff \
  51. --enable-freetype \
  52. --disable-lcms \
  53. --disable-webp \
  54. --disable-webpmux \
  55. --disable-jpeg2000 \
  56. --disable-imagequant \
  57. --disable-platform-guessing
  58. PYTHON_PKG_SETUP_GLOBAL_ARGS:=$(PYTHON3_PKG_SETUP_GLOBAL_ARGS)
  59. $(eval $(call PyPackage,python-pillow))
  60. $(eval $(call BuildPackage,python-pillow))
  61. $(eval $(call BuildPackage,python-pillow-src))
  62. $(eval $(call Py3Package,python3-pillow))
  63. $(eval $(call BuildPackage,python3-pillow))
  64. $(eval $(call BuildPackage,python3-pillow-src))