Ticket #814: Portfile

File Portfile, 1.1 KB (added by robert@…, 21 years ago)

ATTACHMENT: graphics/py21-pil-1.1.4

Line 
1# $Id: Portfile,v 1.2 2003/08/12 19:35:54 rshaw Exp $
2PortSystem 1.0
3name            py21-pil
4version         1.1.4
5categories      graphics python
6maintainers     robert@or.homeip.net
7description     Python Imaging Library
8platforms       darwin
9homepage        http://www.pythonware.com/
10master_sites    http://effbot.org/downloads/
11distname        Imaging-${version}
12checksums       md5 d2c03c25a9a0128832137dd536da88da
13depends_lib     bin:python2.1:python21
14depends_lib     lib:libjpeg:jpeg
15
16patchfiles      patch-Makefile.in \
17                patch-setup.py \
18                patch-Image.py
19
20post-patch      {
21        reinplace s,@prefix@,${prefix},g ${worksrcpath}/setup.py
22}
23
24configure.dir   libImaging
25configure.env   CFLAGS=-I${prefix}/include \
26                LDFLAGS=-L${prefix}/lib
27
28set python      /usr/bin/env\ python2.1
29
30build.dir       libImaging
31post-build      {
32        system  "cd ${worksrcpath} && \
33                ${python} setup.py build"
34}
35
36destroot        {
37        system  "cd ${worksrcpath} && \
38                ${python} setup.py install --prefix=${destroot}${prefix}"
39}
40
41long_description \
42The Python Imaging Library (PIL) adds image processing capabilities to \
43your Python interpreter. This library supports many file formats, and \
44provides powerful image processing and graphics capabilities.
45# vim: ts=8 sw=8