[50498] trunk/dports/python

raimue at macports.org raimue at macports.org
Fri May 1 13:19:49 PDT 2009


Revision: 50498
          http://trac.macports.org/changeset/50498
Author:   raimue at macports.org
Date:     2009-05-01 13:19:48 -0700 (Fri, 01 May 2009)
Log Message:
-----------
python/py26-mapnik:
New port, closes #19114

Added Paths:
-----------
    trunk/dports/python/py26-mapnick/
    trunk/dports/python/py26-mapnick/Portfile
    trunk/dports/python/py26-mapnick/files/
    trunk/dports/python/py26-mapnick/files/patch-src-Sconscript.diff

Added: trunk/dports/python/py26-mapnick/Portfile
===================================================================
--- trunk/dports/python/py26-mapnick/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-mapnick/Portfile	2009-05-01 20:19:48 UTC (rev 50498)
@@ -0,0 +1,125 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name                 py26-mapnik
+version              0.6.0
+categories           python gis
+
+maintainers          gmail.com:dbsgeo
+homepage             http://mapnik.org/
+platforms            darwin
+
+master_sites         http://download.berlios.de/mapnik/ \
+                     http://download2.berlios.de/mapnik/
+                     
+distname             mapnik-${version}
+worksrcdir           mapnik-${version}
+checksums            md5     981271ac1cd1432314a963809c245fe1 \
+                     sha1    4a092f27fe66b8a9f9800a3944a50c6f5b97473a \
+                     rmd160  aa1cbe18a9d0ce96b5c826ea3c8546e1fdf0cc86
+use_bzip2            yes
+
+universal_variant       no
+
+patchfiles            patch-src-Sconscript.diff
+                           
+description          Open Source C++/Python mapping toolkit.
+long_description \
+    Mapnik is a Open Source tookit for developing mapping \
+    applications. It is written in C++ and there are \
+    Python bindings to facilitate fast-paced agile \
+    development. It can comfortably be used for both \
+    desktop and web development. \
+    \
+    Mapnik is about making beautiful maps. It uses the \
+    AGG library and offers world class anti-aliasing \
+    rendering with subpixel accuracy for geographic \
+    data. It is written from scratch in modern C++ and \
+    does not suffer from design decisions made a decade \
+    ago. When it comes to handling common software tasks \
+    such as memory management, filesystem access, \
+    regular expressions, parsing and so on, Mapnik \
+    does not re-invent the wheel, but utilises best of \
+    breed industry standard libraries from boost.org. \
+
+depends_lib         port:boost \
+                    port:libpng \
+                    port:jpeg \
+                    port:tiff \
+                    port:icu \
+                    port:zlib \
+                    port:freetype \
+                    port:proj \
+                    port:libxml2 \
+                    port:python26 \
+
+set python  "${prefix}/bin/python2.6"
+
+configure.pkg_config ${prefix}/bin/pkg-config
+
+variant cairo description {Builds port with Cairo Support} {
+    configure.pkg_config_path  ${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig:${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/pkgconfig
+    depends_lib-append port:cairo
+    depends_lib-append port:cairomm
+    depends_lib-append port:py26-cairo
+    configure.args-delete  CAIRO=False
+    configure.args-append  CAIRO=True
+}
+
+variant postgis description {Builds port with PostGIS plugin} {
+    depends_lib-append port:postgresql83
+    depends_lib-append port:postgresql83-server
+    depends_lib-append port:postgis
+    configure.args-append  PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
+}
+
+variant gdal description {Builds port with GDAL/OGR plugin} {
+    depends_lib-append port:gdal
+    configure.args-append  GDAL_CONFIG=${prefix}/bin/gdal-config
+}
+
+variant sqlite description {Builds port with SQLite3 plugin} {
+    depends_lib-append port:sqlite3
+    configure.args-append  SQLITE_INCLUDES=${prefix}/include \
+                       SQLITE_LIBS=${prefix}/lib
+}
+
+use_parallel_build  yes
+
+configure.args      PREFIX=${prefix} \
+                     JOBS=4 \
+                     CAIRO=False \
+                     INPUT_PLUGINS=all \
+                     PYTHON=${python} \
+                     FREETYPE_CONFIG=${prefix}/bin/freetype-config \
+                     XML2_CONFIG=${prefix}/bin/xml2-config \
+                     BOOST_INCLUDES=${prefix}/include \
+                     BOOST_LIBS=${prefix}/lib \
+                     SQLITE_INCLUDES=${prefix}/include \
+                     SQLITE_LIBS=${prefix}/lib \
+                     ICU_INCLUDES=${prefix}/include \
+                     ICU_LIBS=${prefix}/lib \
+                     PNG_INCLUDES=${prefix}/include \
+                     PNG_LIBS=${prefix}/lib \
+                     JPEG_INCLUDES=${prefix}/include \
+                     JPEG_LIBS=${prefix}/lib \
+                     TIFF_INCLUDES=${prefix}/include \
+                     TIFF_LIBS=${prefix}/lib \
+                     PROJ_INCLUDES=${prefix}/include \
+                     PROJ_LIBS=${prefix}/lib \
+                     FRAMEWORK_PYTHON=False \
+                     DESTDIR=${destroot}
+
+configure {
+    system "cd ${worksrcpath} && ${python} scons/scons.py ${configure.args} configure"
+}
+
+build {
+    system "cd ${worksrcpath} && ${python} scons/scons.py"
+}
+
+destroot {
+    system "cd ${worksrcpath} && ${python} scons/scons.py install"
+}
\ No newline at end of file


Property changes on: trunk/dports/python/py26-mapnick/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py26-mapnick/files/patch-src-Sconscript.diff
===================================================================
--- trunk/dports/python/py26-mapnick/files/patch-src-Sconscript.diff	                        (rev 0)
+++ trunk/dports/python/py26-mapnick/files/patch-src-Sconscript.diff	2009-05-01 20:19:48 UTC (rev 50498)
@@ -0,0 +1,21 @@
+Index: src/SConscript
+===================================================================
+--- src/SConscript	(revision 1105)
++++ src/SConscript	(working copy)
+@@ -31,13 +31,15 @@
+ 
+ install_prefix = env['DESTDIR'] + '/' + prefix
+ 
++libdir = os.path.normpath(prefix + '/' + env['LIBDIR_SCHEMA'])
++
+ libraries = env['LIBS']
+ 
+ if env['INTERNAL_LIBAGG']:
+     libraries.insert(0, 'agg')
+ 
+ if env['PLATFORM'] == 'Darwin':
+-    linkflags = '-Wl,-install_name,libmapnik.dylib'
++    linkflags = '-Wl,-install_name,%s/libmapnik.dylib' % libdir
+ elif env['PLATFORM'] == 'SunOS' and env['CXX'].startswith('CC'):
+     linkflags = '-R. -h libmapnik.so'
+ else: # Linux and others
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090501/af7f9bd8/attachment.html>


More information about the macports-changes mailing list