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