]> granicus.if.org Git - graphviz/commitdiff
Add a gs plugin that uses libgs (ghostscript) to interpret PostScript shapes and...
authorellson <devnull@localhost>
Sun, 12 Oct 2008 21:40:32 +0000 (21:40 +0000)
committerellson <devnull@localhost>
Sun, 12 Oct 2008 21:40:32 +0000 (21:40 +0000)
configure.ac
graphviz.spec.in
plugin/Makefile.am

index 0dcb119cf8f62d76e9f8d6d10a8a0a2de2d4903f..dfaf421e0ac0374dfcc82c50a308ebe410690e84 100644 (file)
@@ -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"
index 99741cb8205397e11702baf780aeb0369e5f0dcb..e2291708b2cd0c93367425fab1e4d4f2c0524295 100644 (file)
@@ -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
index 46b664d232adaa9f901ea45ddc4e25c81c616447..3a958449d31374e66784a12b3a3cebf757729bad 100644 (file)
@@ -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