From: ellson Date: Tue, 26 Sep 2006 16:47:54 +0000 (+0000) Subject: per frequent requests, most recently from Debian, X-Git-Tag: LAST_LIBGRAPH~32^2~5856 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2705a6e72af93e8152815db922b63ebe417fae1c;p=graphviz per frequent requests, most recently from Debian, move shared libs to $PREFIX/lib (from $PREFIX/graphviz/lib) libcdt, libgraph, libagraph, libgvc, libpack, libexpr, libpathplan add missing .3 and .pc --- diff --git a/lib/gvc/Makefile.am b/lib/gvc/Makefile.am index 9287e353b..05221d81c 100644 --- a/lib/gvc/Makefile.am +++ b/lib/gvc/Makefile.am @@ -1,6 +1,7 @@ # $Id$ $Revision$ ## Process this file with automake to produce Makefile.in +pdfdir = $(pkgdatadir)/doc/pdf pkgconfigdir = $(libdir)/pkgconfig AM_CPPFLAGS = \ @@ -20,8 +21,10 @@ pkginclude_HEADERS = gvc.h gvcext.h gvplugin.h gvcjob.h gvcint.h \ dot_builtins.c demand_loading.c no_demand_loading.c noinst_HEADERS = gvcproc.h noinst_LTLIBRARIES = libgvc_C.la -pkglib_LTLIBRARIES = libgvc.la libgvc_builtins.la +lib_LTLIBRARIES = libgvc.la libgvc_builtins.la pkgconfig_DATA = libgvc.pc libgvc_builtins.pc +man_MANS = gvc.3 +pdf_DATA = gvc.pdf libgvc_C_la_SOURCES = gvrender.c gvlayout.c gvdevice.c gvloadimage.c \ gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c \ @@ -48,4 +51,9 @@ libgvc_builtins_la_LDFLAGS = -version-info @VERSION_INFO@ libgvc_builtins_la_SOURCES = $(libgvc_C_la_SOURCES) libgvc_builtins_la_LIBADD = $(libgvc_la_LIBADD) -EXTRA_DIST = Makefile.old +.3.pdf: + -groff -Tps -man $< | ps2pdf - - > $@ + +EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old + +DISTCLEANFILES = $(pdf_DATA) diff --git a/lib/gvc/gvc.3 b/lib/gvc/gvc.3 new file mode 100644 index 000000000..939a71cd1 --- /dev/null +++ b/lib/gvc/gvc.3 @@ -0,0 +1,66 @@ +.TH LIBGVC 3 +.SH NAME +\fBlibgvc\fR \- Graphviz context library +.SH SYNOPSIS +.ta .75i 1.5i 2.25i 3i 3.75i 4.5i 5.25i 6i +.PP +.nf +\f5 +#include + +/* set up a graphviz context */ +extern GVC_t *gvNEWcontext(char **info, char *user); +extern char *gvUsername(void); + +/* set up a graphviz context - alternative */ +/* (wraps the above two functions using info built into libgvc) */ +extern GVC_t *gvContext(void); + +/* parse command line args - minimally argv[0] sets layout engine */ +extern int gvParseArgs(GVC_t *gvc, int argc, char **argv); +extern graph_t *gvNextInputGraph(GVC_t *gvc); + +/* Compute a layout using a specified engine */ +extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine); + +/* Compute a layout using layout engine from command line args */ +extern int gvLayoutJobs(GVC_t *gvc, graph_t *g); + +/* Render layout into string attributes of the graph */ +extern void attach_attrs(graph_t *g); + +/* Parse an html string */ +extern char *agstrdup_html(char *s); +extern int aghtmlstr(char *s); + +/* Render layout in a specified format to an open FILE */ +extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out); + +/* Render layout in a specified format to an open FILE */ +extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename); + +/* Render layout according to -T and -o options found by gvParseArgs */ +extern int gvRenderJobs(GVC_t *gvc, graph_t *g); + +/* Clean up layout data structures - layouts are not nestable (yet) */ +extern int gvFreeLayout(GVC_t *gvc, graph_t *g); + +/* Clean up graphviz context */ +extern int gvFreeContext(GVC_t *gvc); + +\fP +.fi +.SH DESCRIPTION +\fIlibgvc\fP provides a context for applications wishing to manipulate +and render graphs. It provides a command line parsing, common rendering code, +and a plugin mechanism for renderers. + +.SH SEE ALSO +.BR dot (1), +.BR neato (1), +.BR libcdt (3) +.BR libgraph (3) +.br + +.SH AUTHOR +John Ellson (ellson@research.att.com), AT&T diff --git a/lib/gvc/libgvc.pc.in b/lib/gvc/libgvc.pc.in index dae13c77d..dc000a266 100644 --- a/lib/gvc/libgvc.pc.in +++ b/lib/gvc/libgvc.pc.in @@ -1,9 +1,9 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ -libdir=@libdir@/@PACKAGE@ +libdir=@libdir@ includedir=@includedir@/@PACKAGE@ plugins=@GVPLUGIN_VERSION@ - + Name: libgvc Description: The GraphVizContext library Version: @VERSION@ diff --git a/lib/pack/Makefile.am b/lib/pack/Makefile.am index 352390dfa..209f008c8 100644 --- a/lib/pack/Makefile.am +++ b/lib/pack/Makefile.am @@ -16,6 +16,7 @@ pkginclude_HEADERS = pack.h noinst_LTLIBRARIES = libpack_C.la man_MANS = pack.3 pdf_DATA = pack.pdf +pkgconfig_DATA = libpack.pc libpack_C_la_SOURCES = ccomps.c pack.c