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