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@…, 15 years ago) |
---|
-
files/patch-src-Sconscript.diff
1 Index: src/SConscript2 ===================================================================3 --- src/SConscript (revision 1105)4 +++ src/SConscript (working copy)5 @@ -31,13 +31,15 @@6 7 install_prefix = env['DESTDIR'] + '/' + prefix8 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' % libdir19 elif env['PLATFORM'] == 'SunOS' and env['CXX'].startswith('CC'):20 linkflags = '-R. -h libmapnik.so'21 else: # Linux and others -
Portfile
4 4 PortSystem 1.0 5 5 6 6 name py26-mapnik 7 version 0. 6.08 revision 37 version 0.7.1 8 revision 1 9 9 categories python gis 10 10 11 11 maintainers gmail.com:dbsgeo … … 17 17 18 18 distname mapnik-${version} 19 19 worksrcdir mapnik-${version} 20 checksums md5 981271ac1cd1432314a963809c245fe1\21 sha1 4a092f27fe66b8a9f9800a3944a50c6f5b97473a\22 rmd160 aa1cbe18a9d0ce96b5c826ea3c8546e1fdf0cc8620 checksums md5 8f65fda2a792518d6f6be8a85f62fc73 \ 21 sha1 a1961f6dfe5d591d5a892bef05d58e66537440c4 \ 22 rmd160 9e4180e901dfaf255091843869e9441d7a08209f 23 23 use_bzip2 yes 24 24 25 25 universal_variant no 26 27 patchfiles patch-src-Sconscript.diff28 26 29 27 description Open Source C++/Python mapping toolkit. 30 28 long_description \ … … 69 67 } 70 68 71 69 variant postgis description {Builds port with PostGIS plugin} { 72 depends_lib-append port:postgresql8 373 depends_lib-append port:postgresql8 3-server70 depends_lib-append port:postgresql84 71 depends_lib-append port:postgresql84-server 74 72 depends_lib-append port:postgis 75 configure.args-append PG_CONFIG=${prefix}/lib/postgresql8 3/bin/pg_config73 configure.args-append PG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config 76 74 } 77 75 78 76 variant gdal description {Builds port with GDAL/OGR plugin} { … … 89 87 use_parallel_build yes 90 88 91 89 configure.args PREFIX=${prefix} \ 92 JOBS=4 \93 90 CAIRO=False \ 94 INPUT_PLUGINS=all \ 91 OPTIMIZATION=3 \ 92 FRAMEWORK_PYTHON=False \ 93 INPUT_PLUGINS=shape,raster,ogr,postgis,gdal,sqlite \ 95 94 PYTHON=${python} \ 96 95 FREETYPE_CONFIG=${prefix}/bin/freetype-config \ 97 96 XML2_CONFIG=${prefix}/bin/xml2-config \ … … 109 108 TIFF_LIBS=${prefix}/lib \ 110 109 PROJ_INCLUDES=${prefix}/include \ 111 110 PROJ_LIBS=${prefix}/lib \ 112 FRAMEWORK_PYTHON=False \113 111 DESTDIR=${destroot} 114 112 115 113 configure {