Ticket #19114: Portfile

File Portfile, 4.2 KB (added by dbsgeo@…, 15 years ago)

Portfile against svn tag of Mapnik 0.6.0 (for development - ultimately we can build against tarred release)

Line 
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
4PortSystem 1.0
5
6name                    py25-mapnik
7version                 trunk
8categories            graphics gis
9platforms             darwin
10maintainers          gmail.com:dbsgeo
11description           Open Source toolkit for developing mapping applications.
12homepage             http://mapnik.org/
13platforms              darwin
14
15
16distname            ${name}-${version}
17checksums           md5 3cba5f847eabb88be6f5047ee7ed0be3 \
18                            sha1 e0c94afdd29af9bc0014707e29596ec86fc399b5 \
19                            rmd160 9290fcb8bf8b63d78727e837577fa2fdfa3587a9
20
21worksrcdir      ${version}
22use_configure   no
23
24fetch.type          svn
25svn.url             http://svn.mapnik.org/tags/release-0.6.0/
26
27long_description \
28    Mapnik is a Open Source for developing mapping \
29    applications. It's written in C++ and there are \
30    Python bindings to facilitate fast-paced agile \
31    development. It can comfortably be used for both \
32    desktop and web development. \
33    \
34    Mapnik is about making beautiful maps. It uses the \
35    AGG library and offers world class anti-aliasing \
36    rendering with subpixel accuracy for geographic \
37    data. It is written from scratch in modern C++ and \
38    doesn't suffer from design decisions made a decade \
39    ago. When it comes to handling common software tasks \
40    such as memory management, filesystem access, \
41    regular expressions, parsing and so on, Mapnik \
42    doesn't re-invent the wheel, but utilises best of \
43    breed industry standard libraries from boost.org. \
44
45depends_build       bin:svn:subversion
46
47depends_lib         port:boost \
48                    port:libpng \
49                    port:jpeg \
50                    port:tiff \
51                    port:icu \
52                    port:zlib \
53                    port:freetype \
54                    port:proj \
55                    port:libxml2 \
56                    port:python25 \
57                    port:py25-hashlib
58
59set python  "${prefix}/bin/python2.5"
60
61variant cairo description {Builds port with Cairo Support} {
62    depends_lib-append port:cairo
63    depends_lib-append port:cairomm
64    depends_lib-append port:py25-cairo
65    build.args-delete CAIRO=False
66    build.args-append  CAIRO=True
67}
68
69variant postgis description {Builds port with PostGIS plugin} {
70    depends_lib-append port:postgis
71    build.args-append  PG_CONFIG=${prefix}/bin/pg_config
72}
73
74variant gdal description {Builds port with GDAL/OGR plugin} {
75    depends_lib-append port:gdal
76    build.args-append  GDAL_CONFIG=${prefix}/bin/gdal-config
77}
78
79variant sqlite description {Builds port with SQLite3 plugin} {
80    depends_lib-append port:sqlite3
81    build.args-append  SQLITE_INCLUDES=${prefix}/include \
82                       SQLITE_LIBS=${prefix}/lib
83}
84
85build.args      PREFIX=${prefix} \
86                     CAIRO=False \
87                     INPUT_PLUGINS=all \
88                     PYTHON_PREFIX=${prefix} \
89                     USE_CONFIG=False \
90                     FREETYPE_CONFIG=${prefix}/bin/freetype-config \
91                     XML2_CONFIG=${prefix}/bin/xml2-config \
92                     BOOST_INCLUDES=${prefix}/include \
93                     BOOST_LIBS=${prefix}/lib \
94                     SQLITE_INCLUDES=${prefix}/include \
95                     SQLITE_LIBS=${prefix}/lib \
96                     ICU_INCLUDES=${prefix}/include \
97                     ICU_LIBS=${prefix}/lib \
98                     PNG_INCLUDES=${prefix}/include \
99                     PNG_LIBS=${prefix}/lib \
100                     JPEG_INCLUDES=${prefix}/include \
101                     JPEG_LIBS=${prefix}/lib \
102                     TIFF_INCLUDES=${prefix}/include \
103                     TIFF_LIBS=${prefix}/lib \
104                     PROJ_INCLUDES=${prefix}/include \
105                     PROJ_LIBS=${prefix}/lib \
106                     PYTHON=${python} \
107                     LIB_DIR_NAME=/mapnik/0.6 \
108                     FRAMEWORK_PYTHON=False \
109                     DESTDIR=${destroot}
110
111build {
112    system "cd ${worksrcpath} && ${python} scons/scons.py ${build.args}"
113}
114
115destroot {
116    system "cd ${worksrcpath} && ${python} scons/scons.py install"
117}