if test "x${TCL_SUPPORTS_STUBS}" = "x1"; then
use_tcl="Yes"
TCL_CFLAGS="${TCL_CFLAGS} -DUSE_TCL_STUBS"
+ AC_DEFINE_UNQUOTED(HAVE_TCL,1,
+ [Define if you have the tcl library])
else
AC_MSG_WARN([Tcl does not have STUBs support, perhaps it is too old? The Tcl packages will not be built])
use_tcl="No (no STUBs support)"
lib/xdot/Makefile
lib/topfish/Makefile
lib/glcomp/Makefile
+ lib/tclstubs/Makefile
+ lib/tkstubs/Makefile
macosx/Info.plist
macosx/build/graphviz.pmdoc/01local.xml
macosx/build/graphviz.pmdoc/02graphviz.xml
plugin/Makefile
plugin/core/Makefile
plugin/devil/Makefile
- plugin/gdk_pixbuf/Makefile
- plugin/rsvg/Makefile
plugin/gd/Makefile
- plugin/pango/Makefile
- plugin/ming/Makefile
- plugin/quartz/Makefile
+ plugin/gdk_pixbuf/Makefile
plugin/gdiplus/Makefile
plugin/glitz/Makefile
+ plugin/gtk/Makefile
+ plugin/ming/Makefile
+ plugin/pango/Makefile
+ plugin/quartz/Makefile
+ plugin/rsvg/Makefile
+ plugin/tcl/Makefile
+ plugin/xlib/Makefile
plugin/dot_layout/Makefile
plugin/neato_layout/Makefile
- plugin/xlib/Makefile
- plugin/gtk/Makefile
cmd/Makefile
cmd/dot/Makefile
cmd/tools/Makefile
cmd/dotty/Makefile
cmd/smyrna/Makefile
tclpkg/Makefile
- tclpkg/tclstubs/Makefile
- tclpkg/tkstubs/Makefile
tclpkg/tclhandle/Makefile
tclpkg/gdtclft/Makefile
tclpkg/gdtclft/demo/Makefile
echo " gdk_pixbuf: $use_gdk_pixbuf"
echo " glitz: $use_glitz"
echo " gtk: $use_gtk"
-echo " pangocairo: $use_pangocairo"
echo " ming: $use_ming"
+echo " pangocairo: $use_pangocairo"
echo " quartz: $use_quartz"
echo " rsvg: $use_rsvg"
+echo " tcl: $use_tcl"
echo " xlib: $use_xlib"
echo ""
echo "language extensions:"
%{_datadir}/graphviz/smyrna
%{_datadir}/graphviz/examples
%endif
+%exclude %{_libdir}/graphviz/libgvplugin_tcl.*
#-- graphviz-gd rpm --------------------------------------------------
%package gd
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz/tcl
%{_libdir}/graphviz/tcl/*
+%{_libdir}/graphviz/libgvplugin_tcl.*
%{_libdir}/tcl*/*
%{_datadir}/graphviz/demo/*.tcl*
%{_datadir}/graphviz/demo/*_data
%{_mandir}/mann/tkspline.n*
%endif
+# run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
+%post tcl
+LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
+
+%postun tcl
+[ -x $RPM_INSTALL_PREFIX0/bin/dot ] && LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c || :
+
#-- graphviz-devel rpm --------------------------------------------
%package devel
Group: Development/Libraries
SUBDIRS = cdt graph agraph gd pathplan agutil sfio vmalloc ast vpsc \
circogen dotgen fdpgen neatogen twopigen sparse sfdpgen \
- patchwork common pack gvc ingraphs expr cgraph xdot topfish glcomp
+ patchwork common pack gvc ingraphs expr cgraph xdot topfish glcomp \
+ tclstubs tkstubs
EXTRA_DIST = Makefile.old
# $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 quartz gdiplus glitz
+SUBDIRS = core devil gd gdk_pixbuf gdiplus glitz gtk ming pango quartz rsvg tcl xlib dot_layout neato_layout
EXTRA_DIST = Makefile.old
pkgindex_DATA = pkgIndex.tcl
endif
-SUBDIRS = tclstubs tkstubs tclhandle gdtclft tcldot tclpathplan tkspline gv
+SUBDIRS = tclhandle gdtclft tcldot tclpathplan tkspline gv
pkgIndex.tcl: @TCL_PKGINDEX@ @TCL_PKGINDEX_GD@ @TCL_PKGINDEX_SWIG@ @TK_PKGINDEX@
echo "# end" >end
if WITH_MYLIBGD
libgdtclft_la_LIBADD = \
$(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
+ $(top_builddir)/lib/tclstubs/libtclstubs_C.la \
$(top_builddir)/lib/gd/libgvgd_C.la \
@ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @Z_LIBS@ @MATH_LIBS@
else
libgdtclft_la_LIBADD = \
$(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
+ $(top_builddir)/lib/tclstubs/libtclstubs_C.la \
@GD_LIBS@ @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @Z_LIBS@ @MATH_LIBS@
endif
TCL_data =
nodist_libgv_tcl_la_SOURCES = gv_tcl.cpp $(TCL_data)
libgv_tcl_la_SOURCES = $(BASESOURCES) gv_dummy_init.cpp
-libgv_tcl_la_LIBADD = $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la $(BASELIBS) $(TCL_LIBS)
+libgv_tcl_la_LIBADD = $(top_builddir)/lib/tclstubs/libtclstubs_C.la $(BASELIBS) $(TCL_LIBS)
libgv_tcl_la_LDFLAGS = -module -avoid-version
libgv_tcl_la_CPPFLAGS = $(AM_CPPFLAGS) $(TCL_INCLUDES)
$(TCL_data): gv_tcl.cpp
libtcldot_la_LDFLAGS = -no-undefined
libtcldot_la_LIBADD = $(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
+ $(top_builddir)/lib/tclstubs/libtclstubs_C.la \
$(top_builddir)/lib/gvc/libgvc.la
# GDTCLFT requires gd libs to be builtin
libtcldot_builtin_la_LIBADD = \
$(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
$(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout_C.la \
$(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout_C.la \
- $(top_builddir)/plugin/core/libgvplugin_core_C.la \
+ $(top_builddir)/plugin/tcl/libgvplugin_tcl_C.la \
$(top_builddir)/lib/gvc/libgvc_C.la \
$(top_builddir)/lib/graph/libgraph_C.la \
$(top_builddir)/lib/cdt/libcdt_C.la \
}
#endif
}
- rc = gvjobs_output_langname(gvc, "tk");
+ rc = gvjobs_output_langname(gvc, "tcl_string:tk");
if (rc == NO_SUPPORT) {
- Tcl_AppendResult(interp, " Format: \"tk\" not recognized.\n",
+ Tcl_AppendResult(interp, " Format: \"tcl_string:tk\" not recognized.\n",
(char *) 0);
return TCL_ERROR;
}
job->imagedata = canvas;
job->context = (void *)interp;
job->external_context = TRUE;
+ job->output_file = stdout;
/* make sure that layout is done */
g = g->root;
libtclplan_la_LDFLAGS = -no-undefined
libtclplan_la_LIBADD = \
$(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
+ $(top_builddir)/lib/tclstubs/libtclstubs_C.la \
$(top_builddir)/lib/pathplan/libpathplan.la
if WITH_TCL
-I@TK_SRC_DIR@/generic \
-I@TCL_SRC_DIR@/generic \
@TCL_INCLUDES@ @TCLINT_INCLUDES@ \
- @TK_INCLUDES@ @TKINT_INCLUDES@ -I$(top_srcdir)/tclpkg/tkstubs
+ @TK_INCLUDES@ @TKINT_INCLUDES@ -I$(top_srcdir)/lib/tkstubs
AM_CFLAGS = @X_CFLAGS@ @TCL_CFLAGS@ @TK_CFLAGS@ @TK_DEFS@ \
-UPACKAGE_NAME -UPACKAGE_STRING -UPACKAGE_TARNAME -UPACKAGE_VERSION
libtkspline_la_LDFLAGS = -no-undefined
libtkspline_la_SOURCES = tkspline.c
libtkspline_la_LIBADD = \
- $(top_builddir)/tclpkg/tkstubs/libtkstubs_C.la \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la @TK_LIB_SPEC@
+ $(top_builddir)/lib/tkstubs/libtkstubs_C.la \
+ $(top_builddir)/lib/tclstubs/libtclstubs_C.la @TK_LIB_SPEC@
if WITH_TK
all-local: pkgIndex.tcl