Ticket #12784: Portfile.2

File Portfile.2, 3.0 KB (added by jmroot (Joshua Root), 17 years ago)

updated Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                mapnik
6version             0.5.0
7categories          graphics
8platforms           darwin
9maintainers         pobox.com:paulsmith
10description         Toolkit for developing mapping applications.
11homepage            http://mapnik.org/
12
13master_sites        http://download.berlios.de/mapnik/ \
14                    http://download2.berlios.de/mapnik/
15distname            ${name}_src-${version}
16checksums           md5 d04582267e65405f321bd1696255d95d \
17                    sha1 e0c94afdd29af9bc0014707e29596ec86fc399b5 \
18                    rmd160 9290fcb8bf8b63d78727e837577fa2fdfa3587a9
19
20long_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
38depends_lib         port:boost \
39                    port:gdal \
40                    port:libpng \
41                    port:jpeg \
42                    port:tiff \
43                    port:zlib \
44                    port:freetype \
45                    port:proj
46depends_build       port:python24
47
48variant 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
53variant 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
59set python      "${prefix}/bin/python2.4"
60
61use_configure   no
62
63build.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
79build {
80    system "cd ${worksrcpath} && ${python} scons/scons ${build.args}"
81}
82
83destroot {
84    system "cd ${worksrcpath} && ${python} scons/scons ${build.args} DESTDIR=${destroot} install"
85}
86
87patchfiles      patch-SConstruct.diff