[packages] jamvm: Bump release number, update copyright date
[packages.git] / lang / python-imaging-library / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-imaging-library
11 PKG_VERSION:=1.1.7
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=Imaging-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://effbot.org/downloads
16 PKG_MD5SUM:=fc14a54e1ce02a0225be8854bfba478e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/Imaging-$(PKG_VERSION)
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/python-imaging-library
25   SECTION:=language-python
26   CATEGORY:=Languages
27   SUBMENU:=Python
28   TITLE:=Python Imaging Library (PIL)
29   URL:=http://www.pythonware.com/products/pil/
30   DEPENDS:=+python +libfreetype +libjpeg +zlib
31 endef
32
33 define Package/python-imaging-library/description
34  The Python Imaging Library adds image processing capabilities to your
35  Python interpreter.
36  .
37  This library provides extensive file format support, an efficient
38  internal representation, and fairly powerful image processing
39  capabilities.
40  .
41  The core image library is designed for fast access to data stored in a
42  few basic pixel formats. It should provide a solid foundation for a
43  general image processing tool.
44 endef
45
46 define Build/Compile
47         $(call Build/Compile/PyMod,., \
48                 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
49         )
50 endef
51
52 define Package/python-imaging-library/install
53         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
54         $(CP) \
55                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
56                 $(1)$(PYTHON_PKG_DIR)/
57 endef
58
59 $(eval $(call BuildPackage,python-imaging-library))