Ticket #12784: Portfile

File Portfile, 2.9 KB (added by paulsmith@…, 17 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name                mapnik
6version             0.4.0-svn-r526
7categories          graphics
8platforms           darwin
9maintainers         pobox.com:paulsmith
10description         Toolkit for developing mapping applications.
11homepage            http://mapnik.org/
12master_sites        http://s3.amazonaws.com/macports/
13checksums           md5 d04582267e65405f321bd1696255d95d \
14                    sha1 ba8bbdfb1b7ffd820f0764596bc32d3b40c17af9
15
16long_description \
17    Mapnik is a Free Toolkit for developing mapping \
18    applications. It's written in C++ and there are \
19    Python bindings to facilitate fast-paced agile \
20    development. It can comfortably be used for both \
21    desktop and web development. \
22    \
23    Mapnik is about making beautiful maps. It uses the \
24    AGG library and offers world class anti-aliasing \
25    rendering with subpixel accuracy for geographic \
26    data. It is written from scratch in modern C++ and \
27    doesn't suffer from design decisions made a decade \
28    ago. When it comes to handling common software tasks \
29    such as memory management, filesystem access, \
30    regular expressions, parsing and so on, Mapnik \
31    doesn't re-invent the wheel, but utilises best of \
32    breed industry standard libraries from boost.org. \
33
34depends_lib         port:boost \
35                    port:gdal \
36                    port:libpng \
37                    port:jpeg \
38                    port:tiff \
39                    port:zlib \
40                    port:freetype \
41                    port:proj
42depends_build       port:python24
43
44variant no_python description {Builds port without Python bindings} {
45    build.args-append  BINDINGS=none
46    build.args-delete  PYTHON=${prefix}/bin/python2.4
47}
48
49variant postgis description {Builds port with PostGIS support} {
50    depends_lib-append port:postgis
51    build.args-append  PGSQL_INCLUDES=${prefix}/include \
52                       PGSQL_LIBS=${prefix}/lib
53}
54
55set python      "${prefix}/bin/python2.4"
56
57use_bzip2       yes
58
59configure       {}
60
61build.args      PREFIX=${prefix} \
62                BOOST_INCLUDES=${prefix}/include \
63                BOOST_LIBS=${prefix}/lib \
64                GDAL_INCLUDES=${prefix}/include \
65                GDAL_LIBS=${prefix}/lib \
66                FREETYPE_CONFIG=${prefix}/bin/freetype-config \
67                PNG_INCLUDES=${prefix}/include \
68                PNG_LIBS=${prefix}/lib \
69                JPEG_INCLUDES=${prefix}/include \
70                JPEG_LIBS=${prefix}/lib \
71                TIFF_INCLUDES=${prefix}/include \
72                TIFF_LIBS=${prefix}/lib \
73                PROJ_INCLUDES=${prefix}/include \
74                PROJ_LIBS=${prefix}/lib \
75                PYTHON=${python}
76
77build {
78    system "cd ${worksrcpath} && ${python} scons/scons ${build.args}"
79}
80
81destroot {
82    system "cd ${worksrcpath} && ${python} scons/scons ${build.args} DESTDIR=${destroot} install"
83}
84
85patchfiles      patch-SConstruct
86