#! /bin/sh /usr/share/dpatch/dpatch-run ## 107-disable-mapnik.dpatch by Allison Randal ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Don't call into the mapnik library APIs when mapnik is disabled. @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ftbfs-precise~/src/map_handler.c ftbfs-precise/src/map_handler.c --- ftbfs-precise~/src/map_handler.c 2011-12-01 22:24:15.000000000 +0000 +++ ftbfs-precise/src/map_handler.c 2011-12-01 22:37:16.298094236 +0000 @@ -660,9 +660,12 @@ if (maploaded) gdk_pixbuf_unref (image); +#ifdef MAPNIK if ( !strcmp (filename,"mapnik") ) { limage = gdk_pixbuf_new_from_data(get_mapnik_imagedata(), GDK_COLORSPACE_RGB, FALSE, 8, 1280, 1024, 1280 * 3, NULL, NULL); - } else { + } else +#endif // MAPNIK + { limage = gdk_pixbuf_new_from_file (filename, NULL); if (limage == NULL) {