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