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.

49 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:=5.3.0
  9. PKG_RELEASE:=2
  10. PKG_SOURCE:=Pillow-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/Pillow
  12. PKG_HASH:=2ea3517cd5779843de8a759c2349a3cd8d3893e03ab47053b66d5ec6f8bc4f93
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/Pillow-$(PKG_VERSION)
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. PKG_LICENSE:=CUSTOM
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. define Package/pillow
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=The friendly PIL fork
  24. URL:=https://python-pillow.org/
  25. DEPENDS:=+python +libfreetype +libjpeg +zlib +libtiff
  26. endef
  27. define Package/pillow/description
  28. The friendly PIL fork
  29. endef
  30. define Build/Compile
  31. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  32. endef
  33. define Package/pillow/install
  34. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  35. $(CP) \
  36. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  37. $(1)$(PYTHON_PKG_DIR)/
  38. endef
  39. $(eval $(call BuildPackage,pillow))