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.

62 lines
1.6 KiB

  1. #
  2. # Copyright (c) 1997-2009 by Secret Labs AB
  3. # Copyright (c) 1995-2009 by Fredrik Lundh
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-imglib
  7. PKG_VERSION:=1.1.7
  8. PKG_RELEASE:=1
  9. PKG_LICENSE:=CUSTOM
  10. PKG_LICENSE_FILES:=README
  11. PKG_SOURCE:=Imaging-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://effbot.org/downloads
  13. PKG_MD5SUM:=fc14a54e1ce02a0225be8854bfba478e
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/Imaging-$(PKG_VERSION)
  15. PKG_BUILD_DEPENDS:=python python-setuptools
  16. include $(INCLUDE_DIR)/package.mk
  17. $(call include_mk, python-package.mk)
  18. define Package/python-imglib
  19. SECTION:=language-python
  20. CATEGORY:=Languages
  21. SUBMENU:=Python
  22. TITLE:=Python Imaging Library (PIL)
  23. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  24. URL:=http://www.pythonware.com/products/pil/
  25. DEPENDS:=+python +libfreetype +libjpeg +zlib
  26. endef
  27. define Package/python-imglib/description
  28. The Python Imaging Library adds image processing capabilities to your
  29. Python interpreter.
  30. This library provides extensive file format support, an efficient
  31. internal representation, and fairly powerful image processing
  32. capabilities.
  33. The core image library is designed for fast access to data stored in a
  34. few basic pixel formats. It should provide a solid foundation for a
  35. general image processing tool.
  36. endef
  37. define Build/Compile
  38. $(call Build/Compile/PyMod,., \
  39. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
  40. )
  41. endef
  42. define Package/python-imglib/install
  43. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  47. $(1)$(PYTHON_PKG_DIR)/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  49. endef
  50. $(eval $(call BuildPackage,python-imglib))