SUMMARY="Python Imaging Library"
DESCRIPTION="The Python Imaging Library (PIL) adds image processing \
capabilities to your Python interpreter. This library supports many file \
formats, and provides powerful image processing and graphics capabilities."
LICENSE="MIT"
COPYRIGHT="
1997-2011 by Secret Labs AB
1995-2011 by Fredrik Lundh
"
ARCHITECTURES="x86_gcc2"
REVISION="1"
HOMEPAGE="http://www.pythonware.com/products/pil/"

SOURCE_URI="http://effbot.org/downloads/Imaging-1.1.7.tar.gz"
CHECKSUM_SHA256="895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211"
SOURCE_DIR="Imaging-1.1.7"

PROVIDES="
	python_imaging$secondaryArchSuffix = $portVersion
	cmd:pilconvert.py
	cmd:pildriver.py
	cmd:pilfile.py
	cmd:pilfont.py
	cmd:pilprint.py
"

BUILD_REQUIRES="
	devel:libjpeg
	devel:libz
"

BUILD_PREREQUIRES="
	haiku_devel$secondaryArchSuffix
	cmd:gcc
	cmd:python
"

BUILD()
{
	python setup.py build_ext -i
}

INSTALL()
{
	python setup.py install --prefix=$prefix
}
