2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-imaging-library
14 PKG_SOURCE
:=Imaging-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://effbot.org
/downloads
16 PKG_MD5SUM
:=fc14a54e1ce02a0225be8854bfba478e
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/Imaging-
$(PKG_VERSION
)
19 PKG_BUILD_DEPENDS
:=python
21 include $(INCLUDE_DIR
)/package.mk
22 $(call include_mk
, python-package.mk
)
24 define Package
/python-imaging-library
25 SECTION
:=language-python
28 TITLE
:=Python Imaging Library
(PIL
)
29 URL
:=http
://www.pythonware.com
/products
/pil
/
30 DEPENDS
:=+python
+libfreetype
+libjpeg
+zlib
33 define Package
/python-imaging-library
/description
34 The Python Imaging Library adds image processing capabilities to your
37 This library provides extensive file format support
, an efficient
38 internal representation
, and fairly powerful image processing
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.
47 $(call Build
/Compile
/PyMod
,.
, \
48 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)", \
52 define Package
/python-imaging-library
/install
53 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
55 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
56 $(1)$(PYTHON_PKG_DIR
)/
59 $(eval
$(call BuildPackage
,python-imaging-library
))