Ticket #19114: Portfile.5

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

Python 2.6 Port (abandoning python25 version)

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                 py26-mapnik
7version              0.6.0
8categories           python gis
9
10maintainers          gmail.com:dbsgeo
11homepage             http://mapnik.org/
12platforms            darwin
13
14master_sites         http://download.berlios.de/mapnik/ \
15                     http://download2.berlios.de/mapnik/
16                     
17distname             mapnik-${version}
18worksrcdir           mapnik-${version}
19checksums            md5     981271ac1cd1432314a963809c245fe1 \
20                     sha1    4a092f27fe66b8a9f9800a3944a50c6f5b97473a \
21                     rmd160  aa1cbe18a9d0ce96b5c826ea3c8546e1fdf0cc86
22use_bzip2            yes
23
24patchfiles            patch-src-Sconscript.diff
25                           
26description          Open Source C++/Python mapping toolkit.
27long_description \
28    Mapnik is a Open Source tookit for developing mapping \
29    applications. It is 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    does not 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    does not re-invent the wheel, but utilises best of \
43    breed industry standard libraries from boost.org. \
44
45depends_lib         port:boost \
46                    port:libpng \
47                    port:jpeg \
48                    port:tiff \
49                    port:icu \
50                    port:zlib \
51                    port:freetype \
52                    port:proj \
53                    port:libxml2 \
54                    port:python26 \
55
56set python  "${prefix}/bin/python2.6"
57
58variant cairo description {Builds port with Cairo Support} {
59    depends_lib-append port:cairo
60    depends_lib-append port:cairomm
61    depends_lib-append port:py26-cairo
62    build.args-delete  CAIRO=False
63    build.args-append  CAIRO=True
64}
65
66variant postgis description {Builds port with PostGIS plugin} {
67    depends_lib-append port:postgis
68    build.args-append  PG_CONFIG=${prefix}/bin/pg_config
69}
70
71variant gdal description {Builds port with GDAL/OGR plugin} {
72    depends_lib-append port:gdal
73    build.args-append  GDAL_CONFIG=${prefix}/bin/gdal-config
74}
75
76variant sqlite description {Builds port with SQLite3 plugin} {
77    depends_lib-append port:sqlite3
78    build.args-append  SQLITE_INCLUDES=${prefix}/include \
79                       SQLITE_LIBS=${prefix}/lib
80}
81
82use_parallel_build  yes
83
84use_configure        no
85
86build.args      PREFIX=${prefix} \
87                     JOBS=4 \
88                     FAST=True \
89                     CAIRO=False \
90                     INPUT_PLUGINS=all \
91                     PYTHON=${python} \
92                     FREETYPE_CONFIG=${prefix}/bin/freetype-config \
93                     XML2_CONFIG=${prefix}/bin/xml2-config \
94                     BOOST_INCLUDES=${prefix}/include \
95                     BOOST_LIBS=${prefix}/lib \
96                     SQLITE_INCLUDES=${prefix}/include \
97                     SQLITE_LIBS=${prefix}/lib \
98                     ICU_INCLUDES=${prefix}/include \
99                     ICU_LIBS=${prefix}/lib \
100                     PNG_INCLUDES=${prefix}/include \
101                     PNG_LIBS=${prefix}/lib \
102                     JPEG_INCLUDES=${prefix}/include \
103                     JPEG_LIBS=${prefix}/lib \
104                     TIFF_INCLUDES=${prefix}/include \
105                     TIFF_LIBS=${prefix}/lib \
106                     PROJ_INCLUDES=${prefix}/include \
107                     PROJ_LIBS=${prefix}/lib \
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}