graphviz.patch 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Index: lib/sfio/sfhdr.h
  2. --- lib/sfio/sfhdr.h.orig Fri Apr 27 04:17:42 2001
  3. +++ lib/sfio/sfhdr.h Tue Feb 18 19:26:37 2003
  4. @@ -143,6 +143,10 @@
  5. #include <errno.h>
  6. #include <ctype.h>
  7. +#ifndef va_copy
  8. +#define va_copy(to,fr) ((to)=(fr))
  9. +#endif
  10. +
  11. #if vt_threaded
  12. /* initialization */
  13. @@ -254,7 +258,9 @@
  14. #include <limits.h>
  15. #else
  16. #if _hdr_values
  17. +#ifdef HAVE_VALUES_H
  18. #include <values.h>
  19. +#endif
  20. #if !defined(SF_MAXDOUBLE) && defined(MAXDOUBLE)
  21. #define SF_MAXDOUBLE MAXDOUBLE
  22. #endif
  23. Index: plugin/gd/gvrender_gd.c
  24. --- plugin/gd/gvrender_gd.c.orig 2007-11-08 20:42:15 +0100
  25. +++ plugin/gd/gvrender_gd.c 2007-11-10 18:37:15 +0100
  26. @@ -34,6 +34,10 @@
  27. #ifdef HAVE_LIBGD
  28. #include "gd.h"
  29. +#ifndef HAVE_GD_FONTCONFIG
  30. +#define HAVE_GD_FONTCONFIG
  31. +#endif
  32. +
  33. typedef enum {
  34. FORMAT_GIF,
  35. FORMAT_JPEG,
  36. Index: plugin/gd/gvtextlayout_gd.c
  37. --- plugin/gd/gvtextlayout_gd.c.orig 2007-11-08 20:42:15 +0100
  38. +++ plugin/gd/gvtextlayout_gd.c 2007-11-10 18:37:31 +0100
  39. @@ -29,6 +29,10 @@
  40. #ifdef HAVE_LIBGD
  41. #include "gd.h"
  42. +#ifndef HAVE_GD_FONTCONFIG
  43. +#define HAVE_GD_FONTCONFIG
  44. +#endif
  45. +
  46. #if defined(HAVE_LIBGD) && defined(HAVE_GD_FREETYPE)
  47. /* fontsize at which text is omitted entirely */
  48. Index: cmd/dot/Makefile.am
  49. --- cmd/dot/Makefile.am 2007/08/28 12:28:57 1.1
  50. +++ cmd/dot/Makefile.am 2007/08/28 13:08:51
  51. @@ -96,6 +96,7 @@
  52. @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @MATH_LIBS@
  53. endif
  54. else
  55. +if WITH_PANGOCAIRO
  56. dot_static_LDADD = \
  57. $(top_builddir)/plugin/dot_layout/.libs/libgvplugin_dot_layout_C.a \
  58. $(top_builddir)/plugin/neato_layout/.libs/libgvplugin_neato_layout_C.a \
  59. @@ -107,6 +108,18 @@
  60. $(top_builddir)/lib/graph/libgraph_C.la \
  61. $(top_builddir)/lib/cdt/libcdt_C.la \
  62. @GD_LIBS@ @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @PANGOCAIRO_LIBS@ @MATH_LIBS@
  63. +else
  64. +dot_static_LDADD = \
  65. + $(top_builddir)/plugin/dot_layout/.libs/libgvplugin_dot_layout_C.a \
  66. + $(top_builddir)/plugin/neato_layout/.libs/libgvplugin_neato_layout_C.a \
  67. + $(top_builddir)/plugin/core/.libs/libgvplugin_core_C.a \
  68. + $(top_builddir)/plugin/gd/.libs/libgvplugin_gd_C.a \
  69. + $(top_builddir)/lib/gvc/libgvc_C.la \
  70. + $(top_builddir)/lib/pathplan/libpathplan_C.la \
  71. + $(top_builddir)/lib/graph/libgraph_C.la \
  72. + $(top_builddir)/lib/cdt/libcdt_C.la \
  73. + @GD_LIBS@ @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @PANGOCAIRO_LIBS@ @MATH_LIBS@
  74. +endif
  75. endif
  76. dot_builtins_SOURCES =3D dot.c $(top_srcdir)/lib/gvc/dot_builtins.c $(top_srcdir)/lib/gvc/no_demand_loading.c
  77. @@ -138,6 +151,7 @@
  78. @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @MATH_LIBS@
  79. endif
  80. else
  81. +if WITH_PANGOCAIRO
  82. dot_builtins_LDADD = \
  83. $(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout.la \
  84. $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout.la \
  85. @@ -149,6 +163,18 @@
  86. $(top_builddir)/lib/graph/libgraph.la \
  87. $(top_builddir)/lib/cdt/libcdt.la \
  88. @GD_LIBS@ @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @PANGOCAIRO_LIBS@ @MATH_LIBS@
  89. +else
  90. +dot_builtins_LDADD = \
  91. + $(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout.la \
  92. + $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout.la \
  93. + $(top_builddir)/plugin/core/libgvplugin_core.la \
  94. + $(top_builddir)/plugin/gd/libgvplugin_gd.la \
  95. + $(top_builddir)/lib/gvc/libgvc_builtins.la \
  96. + $(top_builddir)/lib/pathplan/libpathplan.la \
  97. + $(top_builddir)/lib/graph/libgraph.la \
  98. + $(top_builddir)/lib/cdt/libcdt.la \
  99. + @GD_LIBS@ @ICONV_LIBS@ @FONTCONFIG_LIBS@ @FREETYPE2_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @PANGOCAIRO_LIBS@ @MATH_LIBS@
  100. +endif
  101. endif