]> granicus.if.org Git - graphviz/commitdiff
make a start at a glitz plugin
authorellson <devnull@localhost>
Tue, 11 Mar 2008 18:55:46 +0000 (18:55 +0000)
committerellson <devnull@localhost>
Tue, 11 Mar 2008 18:55:46 +0000 (18:55 +0000)
configure.ac
graphviz.spec.in

index d6f56d7c942baaa870b094ed1738d508a60abad9..f8992c591673c48cf75ccc8758e1bd566e0d4e8a 100644 (file)
@@ -1689,6 +1689,24 @@ AC_SUBST(PANGOCAIRO_LIBS)
 fi
 AM_CONDITIONAL(WITH_PANGOCAIRO, [test "x$HAVE_PANGOCAIRO" != "x"])
 
+dnl -----------------------------------
+dnl INCLUDES and LIBS for GLITZ
+                                                                                
+AC_ARG_WITH(glitz,
+  [AC_HELP_STRING([--with-glitz=no], [glitz library])],
+  [], [with_glitz=no])
+
+if test "x$with_glitz" = "xyes"; then
+PKG_CHECK_MODULES(GLITZ, [glitz],
+       [HAVE_GLITZ=1
+       AC_DEFINE_UNQUOTED(HAVE_GLITZ,1,
+               [Define if you have the glitz library with cairo support])],
+       [AC_MSG_WARN(glitz library not available)])
+AC_SUBST(GLITZ_CFLAGS)
+AC_SUBST(GLITZ_LIBS)
+fi
+AM_CONDITIONAL(WITH_GLITZ, [test "x$HAVE_GLITZ" != "x"])
+
 dnl -----------------------------------
 dnl INCLUDES and LIBS for FREETYPE2
                                                                                 
@@ -2506,6 +2524,7 @@ AC_CONFIG_FILES(Makefile
        plugin/ming/Makefile
        plugin/quartz/Makefile
        plugin/gdiplus/Makefile
+       plugin/glitz/Makefile
        plugin/dot_layout/Makefile
        plugin/neato_layout/Makefile
        plugin/xlib/Makefile
index b4f001ab5bbebd5dbc1a5943abec876dc2268741..89d8a8b7246ac77641acd710afe9e218da1c6fbc 100644 (file)
@@ -31,7 +31,7 @@ Prefix: /usr
 # To enable, use: <percent>define FEATURE 1
 # Available features are:
 #    SHARP GUILE _IO JAVA LUA OCAML PERL PHP PYTHON RUBY R_LANG
-#    TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG SMYRNA DEVIL MING GDK_PIXBUF
+#    TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG GLITZ SMYRNA DEVIL MING GDK_PIXBUF
 
 # SuSE uses a different mechanism to generate BuildRequires
 # norootforbuild
@@ -146,6 +146,8 @@ BuildRequires: R-devel swig >= 1.3.33
 #
 # <percent>define SMYRNA 1
 # BuildRequires: gtkglarea2-devel gtkglext-devel glade3-libgladeui-devel
+# <percent>define GLITZ 1
+# BuildRequires: glitz-devel
 %endif
 %if "%fedora" >= "9"
 #define MING 1
@@ -570,6 +572,7 @@ CFLAGS="$RPM_OPT_FLAGS" \
        --with%{!?IPSEPCOLA:out}-ipsepcola \
        --with%{!?MING:out}-ming \
        --with%{!?SMYRNA:out}-smyrna \
+       --with%{!?GLITZ:out}-glitz \
        --with%{!?PANGOCAIRO:out}-pangocairo \
        --with%{!?RSVG:out}-rsvg \
        --with%{!?GDK_PIXBUF:out}-gdk-pixbuf