From: ellson Date: Fri, 28 Dec 2007 21:27:36 +0000 (+0000) Subject: add framework for an svg:cairo loadimage plugin using librsvg2 X-Git-Tag: LAST_LIBGRAPH~32^2~4944 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f043983c9c03265e4468166666dbcb9c9a2ee085;p=graphviz add framework for an svg:cairo loadimage plugin using librsvg2 --- diff --git a/configure.ac b/configure.ac index 5b69d001b..c44a418f6 100644 --- a/configure.ac +++ b/configure.ac @@ -1593,6 +1593,24 @@ AC_SUBST(IPSEPCOLA_LIBS) fi AM_CONDITIONAL(WITH_IPSEPCOLA, [test "x$with_ipsepcola" = "xyes"]) +dnl ----------------------------------- +dnl INCLUDES and LIBS for SVG + +AC_ARG_WITH(rsvg, + [AC_HELP_STRING([--with-rsvg=yes], [rsvg library])], + [], [with_rsvg=yes]) + +if test "x$with_rsvg" = "xyes"; then +PKG_CHECK_MODULES(RSVG, [librsvg-2.0], + [HAVE_RSVG=1 + AC_DEFINE_UNQUOTED(HAVE_RSVG,1, + [Define if you have the rsvg library])], + [AC_MSG_WARN(rsvg library not available)]) +AC_SUBST(RSVG_CFLAGS) +AC_SUBST(RSVG_LIBS) +fi +AM_CONDITIONAL(WITH_RSVG, [test "x$HAVE_RSVG" != "x"]) + dnl ----------------------------------- dnl INCLUDES and LIBS for PANGO, CAIRO et.al. @@ -2298,6 +2316,7 @@ AC_CONFIG_FILES(Makefile plugin/core/Makefile plugin/devil/Makefile plugin/gdk_pixbuf/Makefile + plugin/rsvg/Makefile plugin/gd/Makefile plugin/pango/Makefile plugin/ming/Makefile diff --git a/graphviz.spec.in b/graphviz.spec.in index 7e140979e..cddc83e89 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -43,6 +43,7 @@ Prefix: /usr %define IPSEPCOLA --without-ipsepcola %define MYLIBGD --with-mylibgd %define PANGOCAIRO --without-pangocairo +%define RSVG --without-rsvg %define DEVIL 0 %define MING 0 %define GDK_PIXBUF --without-gdk-pixbuf @@ -149,6 +150,8 @@ BuildRequires: gd gd-devel perl-devel DevIL-devel %if "%fedora" >= "8" #define R_LANG 1 #BuildRequires: R swig >= 1.3.33 +%define RSVG --with-rsvg +BuildRequires: librsvg2 %endif %if "%fedora" >= "9" %define MING 0 diff --git a/plugin/Makefile.am b/plugin/Makefile.am index 0dd6d37f5..8fc258105 100644 --- a/plugin/Makefile.am +++ b/plugin/Makefile.am @@ -1,6 +1,6 @@ # $Id$ $Revision$ ## Process this file with automake to produce Makefile.in -SUBDIRS = core gd pango dot_layout neato_layout xlib gtk ming devil gdk_pixbuf +SUBDIRS = core gd pango dot_layout neato_layout xlib gtk ming devil gdk_pixbuf rsvg EXTRA_DIST = Makefile.old