1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mapnik |
---|
6 | version 0.4.0-svn-r526 |
---|
7 | categories graphics |
---|
8 | platforms darwin |
---|
9 | maintainers pobox.com:paulsmith |
---|
10 | description Toolkit for developing mapping applications. |
---|
11 | homepage http://mapnik.org/ |
---|
12 | master_sites http://s3.amazonaws.com/macports/ |
---|
13 | checksums md5 d04582267e65405f321bd1696255d95d \ |
---|
14 | sha1 ba8bbdfb1b7ffd820f0764596bc32d3b40c17af9 |
---|
15 | |
---|
16 | long_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 | |
---|
34 | depends_lib port:boost \ |
---|
35 | port:gdal \ |
---|
36 | port:libpng \ |
---|
37 | port:jpeg \ |
---|
38 | port:tiff \ |
---|
39 | port:zlib \ |
---|
40 | port:freetype \ |
---|
41 | port:proj |
---|
42 | depends_build port:python24 |
---|
43 | |
---|
44 | variant 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 | |
---|
49 | variant 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 | |
---|
55 | set python "${prefix}/bin/python2.4" |
---|
56 | |
---|
57 | use_bzip2 yes |
---|
58 | |
---|
59 | configure {} |
---|
60 | |
---|
61 | build.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 | |
---|
77 | build { |
---|
78 | system "cd ${worksrcpath} && ${python} scons/scons ${build.args}" |
---|
79 | } |
---|
80 | |
---|
81 | destroot { |
---|
82 | system "cd ${worksrcpath} && ${python} scons/scons ${build.args} DESTDIR=${destroot} install" |
---|
83 | } |
---|
84 | |
---|
85 | patchfiles patch-SConstruct |
---|
86 | |
---|