]> granicus.if.org Git - graphviz/commitdiff
remove all cairo and gd dependencied from gvrender in preparation for
authorellson <devnull@localhost>
Thu, 5 May 2005 03:08:31 +0000 (03:08 +0000)
committerellson <devnull@localhost>
Thu, 5 May 2005 03:08:31 +0000 (03:08 +0000)
these as separately compiled plugins
(codegens still use gd so gd dependency still exists)

cmd/tools/Makefile.am
configure.ac
graphviz.spec.in
lib/gvc/gvconfig.c

index 3972daf784c6dd2e47de7685b222f615484503d9..a7d16ae8c464467399239dcf150fb87ef1ebe6fa 100644 (file)
@@ -110,10 +110,8 @@ gvpack_LDADD = \
        $(top_builddir)/lib/gvc/libgvc.la \
        $(top_builddir)/lib/ingraphs/libingraphs.la \
        $(top_builddir)/lib/graph/libgraph.la \
-       $(top_builddir)/plugin/cairo/libgvplugin_cairo.la \
-        $(top_builddir)/plugin/gd/libgvplugin_gd.la \
         $(top_builddir)/plugin/text/libgvplugin_text.la \
-        $(top_builddir)/plugin/layout/libgvplugin_layout.la @CAIRO_LIBS@
+        $(top_builddir)/plugin/layout/libgvplugin_layout.la
 endif
 
 
index 47475de2e92ecb4a87991d6fdabf396836ea3a87..07d1b0a10a82be45ffadb6dc38c8a8671f62bf22 100644 (file)
@@ -1200,21 +1200,6 @@ AC_SUBST(JPEG_LIBS)
 
 fi
 
-dnl -----------------------------------
-dnl INCLUDES and LIBS for cairo
-
-if test "x$enable_gvrender" != "xno"; then
-       PKG_CHECK_MODULES(CAIRO, cairo >= 0.1.3,
-               [AC_DEFINE_UNQUOTED(HAVE_CAIRO,1,
-                       [Define if you have the cairo library [EXPERIMENTAL]])],
-               [AC_MSG_WARN(Optional cairo library not available [EXPERIMENTAL])])
-else
-       CAIRO_CFLAGS=""
-       CAIRO_LIBS=""
-fi
-AC_SUBST(CAIRO_CFLAGS)
-AC_SUBST(CAIRO_LIBS)
-
 dnl -----------------------------------
 dnl INCLUDES and LIBS for libgen (provides basename function)
 
@@ -1529,8 +1514,6 @@ AC_CONFIG_FILES(Makefile
        lib/gvc/Makefile
        lib/gvc/libgvc.pc
        plugin/Makefile
-       plugin/cairo/Makefile
-       plugin/gd/Makefile
        plugin/text/Makefile
        plugin/layout/Makefile
        cmd/Makefile
index d2f0f0dbe3f03ae72564846f058246231709146f..4e8b78c9b19129b848cba8813b4ba4a35fc91b4f 100644 (file)
@@ -131,7 +131,6 @@ CFLAGS="$RPM_OPT_FLAGS" \
       --datadir=%{_datadir} \
       --mandir=%{_mandir} \
       --with-x \
-      --disable-gvrender \
       --with-mylibgd \
       --disable-dependency-tracking
 # need gd-2.0.29 commonly available in rpms before removing --enable-mylibgd
index 06d62234796fa8f10e2b24eb3e4778d84179bcae..c531b5940c2e336857a1b74228205de74deea7bd 100644 (file)
@@ -45,7 +45,7 @@ extern void config_codegen_builtins(GVC_t *gvc);
 
     Blank lines are allowed and ignored.
 
-    plugin_library_path {
+    plugin_library_path packagename {
        plugin_api {
            plugin_type plugin_quality
            ...
@@ -55,8 +55,8 @@ extern void config_codegen_builtins(GVC_t *gvc);
 
     e.g.
 
-       /usr/lib/graphviz/libgvplugin_cairo.so {renderer {x 0 png 10 ps -10}}
-       /usr/lib/graphviz/libgvplugin_gdgen.so {renderer {png 0 gif 0 jpg 0}}
+       /usr/lib/graphviz/libgvplugin_cairo.so cairo {renderer {x 0 png 10 ps -10}}
+       /usr/lib/graphviz/libgvplugin_gd.so gd {renderer {png 0 gif 0 jpg 0}}
 
     Internally the config is maintained as lists of plugin_types for each plugin_api.
     If multiple plugins of the same type are found then the highest quality wins.
@@ -140,7 +140,10 @@ static void gvconfig_plugin_install_from_config(GVC_t * gvc, char *s)
     separator(&nest, &s);
     while (*s) {
        path = token(&nest, &s);
-       packagename = token(&nest, &s);
+       if (nest == 0)
+           packagename = token(&nest, &s);
+        else
+           packagename = "x";
        do {
            api = token(&nest, &s);
            gv_api = gvplugin_api(api);