From: ellson Date: Sun, 12 Oct 2008 21:40:32 +0000 (+0000) Subject: Add a gs plugin that uses libgs (ghostscript) to interpret PostScript shapes and... X-Git-Tag: LAST_LIBGRAPH~32^2~3170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb9cc7b73e303026b617d9ffe93050593b1c633d;p=graphviz Add a gs plugin that uses libgs (ghostscript) to interpret PostScript shapes and images into cairo. --- diff --git a/configure.ac b/configure.ac index 0dcb119cf..dfaf421e0 100644 --- a/configure.ac +++ b/configure.ac @@ -1834,6 +1834,30 @@ else fi AM_CONDITIONAL(WITH_RSVG, [test "x$use_rsvg" = "xYes"]) +dnl ----------------------------------- +dnl INCLUDES and LIBS for GS + +AC_ARG_WITH(gs, + [AC_HELP_STRING([--with-gs=yes], [gs library])], + [], [with_gs=yes]) + +if test "x$with_gs" != "xyes"; then + use_gs="No (disabled)" +else + AC_CHECK_HEADER(ghostscript/iapi.h, GS_CFLAGS="",use_gs="No (missing headers)") + if test "x$use_gs" = "x"; then + AC_CHECK_LIB(gs, main, GS_LIBS="-lgs", use_gs="No (missing lib)") + if test "x$use_gs" = "x"; then + use_gs="Yes" + AC_DEFINE_UNQUOTED(HAVE_GS,1, + [Define if you have the gs library]) + AC_SUBST(GS_CFLAGS) + AC_SUBST(GS_LIBS) + fi + fi +fi +AM_CONDITIONAL(WITH_GS, [test "x$use_gs" = "xYes"]) + dnl ----------------------------------- dnl INCLUDES and LIBS for PANGO, CAIRO et.al. @@ -2904,6 +2928,7 @@ AC_CONFIG_FILES(Makefile plugin/gdk_pixbuf/Makefile plugin/gdiplus/Makefile plugin/glitz/Makefile + plugin/gs/Makefile plugin/gtk/Makefile plugin/lasi/Makefile plugin/ming/Makefile @@ -3021,6 +3046,7 @@ echo " gd: $use_gd" echo " gdiplus: $use_gdiplus" echo " gdk_pixbuf: $use_gdk_pixbuf" echo " glitz: $use_glitz" +echo " gs: $use_gs" echo " gtk: $use_gtk" echo " lasi: $use_lasi" echo " ming: $use_ming" diff --git a/graphviz.spec.in b/graphviz.spec.in index 99741cb82..e2291708b 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -193,7 +193,7 @@ BuildRequires: gd gd-devel perl-devel DevIL-devel lasi-devel %endif %if %fedora >= 8 %define R_LANG 1 -BuildRequires: R-devel swig >= 1.3.33 +BuildRequires: R-devel swig >= 1.3.33 ghostscript-devel # # packaging is ok, but code is not ready for distribution # @@ -203,6 +203,8 @@ BuildRequires: R-devel swig >= 1.3.33 # BuildRequires: glitz-devel %endif %if %fedora >= 9 +BuildRequires: ghostscript-devel +%define GS 1 #define MING 1 #BuildRequires: ming ming-devel %endif @@ -267,6 +269,8 @@ BuildRequires: R-devel swig >= 1.3.33 # BuildRequires: glitz-devel %endif %if %att_fedora >= 9 +BuildRequires: ghostscript-devel +%define GS 1 #define MING 1 #BuildRequires: ming ming-devel %endif diff --git a/plugin/Makefile.am b/plugin/Makefile.am index 46b664d23..3a958449d 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 devil gd gdk_pixbuf gdiplus glitz gtk lasi ming pango quartz rsvg xlib dot_layout neato_layout +SUBDIRS = core devil gd gdk_pixbuf gdiplus glitz gs gtk lasi ming pango quartz rsvg xlib dot_layout neato_layout EXTRA_DIST = Makefile.old