Ticket #24351: upgrade_py26-mapnik_to_0.7.1.patch

File upgrade_py26-mapnik_to_0.7.1.patch, 3.3 KB (added by dbsgeo@…, 14 years ago)

Upgrade mapnik port to bring back into compatibility with recent boost releases used by macports

  • files/patch-src-Sconscript.diff

     
    1 Index: src/SConscript
    2 ===================================================================
    3 --- src/SConscript      (revision 1105)
    4 +++ src/SConscript      (working copy)
    5 @@ -31,13 +31,15 @@
    6  
    7  install_prefix = env['DESTDIR'] + '/' + prefix
    8  
    9 +libdir = os.path.normpath(prefix + '/' + env['LIBDIR_SCHEMA'])
    10 +
    11  libraries = env['LIBS']
    12  
    13  if env['INTERNAL_LIBAGG']:
    14      libraries.insert(0, 'agg')
    15  
    16  if env['PLATFORM'] == 'Darwin':
    17 -    linkflags = '-Wl,-install_name,libmapnik.dylib'
    18 +    linkflags = '-Wl,-install_name,%s/libmapnik.dylib' % libdir
    19  elif env['PLATFORM'] == 'SunOS' and env['CXX'].startswith('CC'):
    20      linkflags = '-R. -h libmapnik.so'
    21  else: # Linux and others
  • Portfile

     
    44PortSystem 1.0
    55
    66name                 py26-mapnik
    7 version              0.6.0
    8 revision             3
     7version              0.7.1
     8revision             1
    99categories           python gis
    1010
    1111maintainers          gmail.com:dbsgeo
     
    1717                     
    1818distname             mapnik-${version}
    1919worksrcdir           mapnik-${version}
    20 checksums            md5     981271ac1cd1432314a963809c245fe1 \
    21                      sha1    4a092f27fe66b8a9f9800a3944a50c6f5b97473a \
    22                      rmd160  aa1cbe18a9d0ce96b5c826ea3c8546e1fdf0cc86
     20checksums            md5     8f65fda2a792518d6f6be8a85f62fc73 \
     21                     sha1    a1961f6dfe5d591d5a892bef05d58e66537440c4 \
     22                     rmd160  9e4180e901dfaf255091843869e9441d7a08209f
    2323use_bzip2            yes
    2424
    2525universal_variant       no
    26 
    27 patchfiles            patch-src-Sconscript.diff
    2826                           
    2927description          Open Source C++/Python mapping toolkit.
    3028long_description \
     
    6967}
    7068
    7169variant postgis description {Builds port with PostGIS plugin} {
    72     depends_lib-append port:postgresql83
    73     depends_lib-append port:postgresql83-server
     70    depends_lib-append port:postgresql84
     71    depends_lib-append port:postgresql84-server
    7472    depends_lib-append port:postgis
    75     configure.args-append  PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
     73    configure.args-append  PG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config
    7674}
    7775
    7876variant gdal description {Builds port with GDAL/OGR plugin} {
     
    8987use_parallel_build  yes
    9088
    9189configure.args      PREFIX=${prefix} \
    92                      JOBS=4 \
    9390                     CAIRO=False \
    94                      INPUT_PLUGINS=all \
     91                     OPTIMIZATION=3 \
     92                     FRAMEWORK_PYTHON=False \
     93                     INPUT_PLUGINS=shape,raster,ogr,postgis,gdal,sqlite \
    9594                     PYTHON=${python} \
    9695                     FREETYPE_CONFIG=${prefix}/bin/freetype-config \
    9796                     XML2_CONFIG=${prefix}/bin/xml2-config \
     
    109108                     TIFF_LIBS=${prefix}/lib \
    110109                     PROJ_INCLUDES=${prefix}/include \
    111110                     PROJ_LIBS=${prefix}/lib \
    112                      FRAMEWORK_PYTHON=False \
    113111                     DESTDIR=${destroot}
    114112
    115113configure {