]> granicus.if.org Git - graphviz/commitdiff
add Makefile.am and configure section for quartz
authorellson <devnull@localhost>
Mon, 21 Jan 2008 00:49:59 +0000 (00:49 +0000)
committerellson <devnull@localhost>
Mon, 21 Jan 2008 00:49:59 +0000 (00:49 +0000)
configure.ac
plugin/Makefile.am
plugin/quartz/Makefile.am [new file with mode: 0644]

index ae24742b56046c5b9c291b09c88107460c8b6c65..72001c7b4a210ac7af5b73de3c2a678443a7672c 100644 (file)
@@ -1812,6 +1812,24 @@ AC_SUBST(MING_CFLAGS)
 AC_SUBST(MING_LIBS)
 AM_CONDITIONAL(WITH_MING, [test "x$HAVE_MING" != "x"])
 
+dnl -----------------------------------
+dnl INCLUDES and LIBS for QUARTZ 
+
+AC_ARG_WITH(quartz,
+  [AC_HELP_STRING([--with-quartz=no], [quartz library])],
+  [], [with_quartz=no])
+
+if test "x$with_quartz" = "xyes"; then
+PKG_CHECK_MODULES(QUARTZ, [libquartz >= 0.4],
+       [HAVE_QUARTZ=1
+       AC_DEFINE_UNQUOTED(HAVE_QUARTZ,1,
+               [Define if you have the quartz library for SWF support])],
+       [AC_MSG_WARN(quartz library not available)])
+fi
+AC_SUBST(QUARTZ_CFLAGS)
+AC_SUBST(QUARTZ_LIBS)
+AM_CONDITIONAL(WITH_QUARTZ, [test "x$HAVE_QUARTZ" != "x"])
+
 dnl -----------------------------------
 dnl INCLUDES and LIBS for GD
                                                                                 
@@ -2338,6 +2356,7 @@ AC_CONFIG_FILES(Makefile
        plugin/gd/Makefile
        plugin/pango/Makefile
        plugin/ming/Makefile
+       plugin/quartz/Makefile
        plugin/dot_layout/Makefile
        plugin/neato_layout/Makefile
        plugin/xlib/Makefile
index 8fc2581059765ce7fdb524cf126d274de888a2a5..ed00511e7ee5aa1bbb5c52b9a1c48f7185977027 100644 (file)
@@ -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 rsvg
+SUBDIRS = core gd pango dot_layout neato_layout xlib gtk ming devil gdk_pixbuf rsvg quartz
 
 EXTRA_DIST = Makefile.old
diff --git a/plugin/quartz/Makefile.am b/plugin/quartz/Makefile.am
new file mode 100644 (file)
index 0000000..afa66c7
--- /dev/null
@@ -0,0 +1,24 @@
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/lib/common \
+       -I$(top_srcdir)/lib/pathplan \
+       -I$(top_srcdir)/lib/gvc \
+       -I$(top_srcdir)/lib/graph \
+       -I$(top_srcdir)/lib/cdt \
+       $(QUARTZ_CFLAGS)
+
+if WITH_QUARTZ
+noinst_LTLIBRARIES = libgvplugin_quartz_C.la
+pkglib_LTLIBRARIES = libgvplugin_quartz.la
+endif
+
+libgvplugin_quartz_C_la_SOURCES = \
+       gvplugin_quartz.c \
+       gvrender_quartz.c
+
+libgvplugin_quartz_la_LDFLAGS = -version-info @GVPLUGIN_VERSION_INFO@
+libgvplugin_quartz_la_SOURCES = $(libgvplugin_quartz_C_la_SOURCES)
+libgvplugin_quartz_la_LIBADD = @QUARTZ_LIBS@