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.

54 lines
1.5 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:=3.3.1
  9. PKG_RELEASE=1
  10. PKG_LICENSE:=CUSTOM
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/python-pillow/Pillow.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=aab33141f381d5577cdef9033b7fdff79122a10c
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_MIRROR_HASH:=e7c36bcf89614337d9abc4d07780da0b346a745be7a9aa55b398fa427549273c
  18. PKG_BUILD_DEPENDS:=python python-setuptools
  19. include $(INCLUDE_DIR)/package.mk
  20. $(call include_mk, python-package.mk)
  21. define Package/pillow
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=The friendly PIL fork
  26. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  27. URL:=https://python-pillow.org/
  28. DEPENDS:=+python +libfreetype +libjpeg +zlib +libtiff
  29. endef
  30. define Package/pillow/description
  31. The friendly PIL fork
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  35. endef
  36. define Package/pillow/install
  37. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  41. $(1)$(PYTHON_PKG_DIR)/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  43. $(CP) $(PKG_BUILD_DIR)/LICENSE $(1)$(PYTHON_PKG_DIR)/PIL/
  44. endef
  45. $(eval $(call BuildPackage,pillow))