From ad59f787995110698f4b2f041711211cddc70784 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 21 Jan 2008 00:49:59 +0000 Subject: [PATCH] add Makefile.am and configure section for quartz --- configure.ac | 19 +++++++++++++++++++ plugin/Makefile.am | 2 +- plugin/quartz/Makefile.am | 24 ++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 plugin/quartz/Makefile.am diff --git a/configure.ac b/configure.ac index ae24742b5..72001c7b4 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/plugin/Makefile.am b/plugin/Makefile.am index 8fc258105..ed00511e7 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 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 index 000000000..afa66c7e9 --- /dev/null +++ b/plugin/quartz/Makefile.am @@ -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@ -- 2.40.0