source: trunk/dports/python/py-pil/Portfile @ 4130

Last change on this file since 4130 was 4130, checked in by rshaw, 17 years ago

corrected email address

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.2 2003/12/06 03:39:00 rshaw Exp $
2
3PortSystem 1.0
4
5name            py-pil
6version         1.1.4
7categories      python graphics
8maintainers     rshaw@opendarwin.org
9description     Python Imaging Library
10long_description        The Python Imaging Library (PIL) adds image processing \
11                capabilities to your Python interpreter. This library supports \
12                many file formats, and provides powerful image processing and \
13                graphics capabilities.
14
15homepage        http://www.pythonware.com/
16master_sites    http://effbot.org/downloads/
17distname        Imaging-${version}
18checksums       md5 d2c03c25a9a0128832137dd536da88da
19patchfiles      patch-Makefile.in \
20                patch-setup.py \
21                patch-Image.py
22
23depends_lib     bin:python:python \
24                lib:libjpeg:jpeg
25
26post-patch      {
27        reinplace s,@prefix@,${prefix},g ${worksrcpath}/setup.py
28}
29
30configure.dir   ${worksrcpath}/libImaging
31configure.env   CFLAGS="-I${prefix}/include" \
32                LDFLAGS="-L${prefix}/lib"
33
34build.dir       ${configure.dir}
35post-build      {
36        system  "cd ${worksrcpath} && python setup.py build"
37}
38
39destroot.dir    ${worksrcpath}
40destroot.cmd    python setup.py
41destroot.destdir        --prefix=${destroot}${prefix}
42post-destroot   {
43        file mkdir ${destroot}${prefix}/share/doc
44        file copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}
45        file copy ${worksrcpath}/BUILDME ${worksrcpath}/CHANGES-114 \
46                ${worksrcpath}/CONTENTS ${worksrcpath}/README \
47                ${destroot}${prefix}/share/doc/${name}
48}
Note: See TracBrowser for help on using the repository browser.