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.

53 lines
1.4 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_BUILD_DEPENDS:=python python-setuptools
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. define Package/pillow
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=The friendly PIL fork
  25. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  26. URL:=https://python-pillow.org/
  27. DEPENDS:=+python +libfreetype +libjpeg +zlib +libtiff
  28. endef
  29. define Package/pillow/description
  30. The friendly PIL fork
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  34. endef
  35. define Package/pillow/install
  36. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  40. $(1)$(PYTHON_PKG_DIR)/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  42. $(CP) $(PKG_BUILD_DIR)/LICENSE $(1)$(PYTHON_PKG_DIR)/PIL/
  43. endef
  44. $(eval $(call BuildPackage,pillow))