diff options
| author | Jack Nagel | 2011-09-14 22:38:21 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-09-18 18:06:05 -0500 |
| commit | cbe7be11016a7a450416247643185e7e436520ca (patch) | |
| tree | 2ff4439c2a92712f2efcc50ae74ee4fd04850427 /Library/Formula | |
| parent | d6c22ab13c05c2934cd6e28f46bc3ff012644c9a (diff) | |
| download | homebrew-cbe7be11016a7a450416247643185e7e436520ca.tar.bz2 | |
graphviz: patch for linking with libltdl
Linking with '-lltdl' fails on Lion and/or with XCode 4.2. The patch is
already in the upstream development version and will be in the next
release.
Closes #7503.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/graphviz.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb index 7e44a9bbc..ffed3670d 100644 --- a/Library/Formula/graphviz.rb +++ b/Library/Formula/graphviz.rb @@ -17,6 +17,13 @@ class Graphviz < Formula [["--with-pdf", "Build with Pango/Cairo to support native PDF output"]] end + def patches + # fix build on platforms without /usr/lib/libltdl.a (i.e., Lion) + # http://www.graphviz.org/mantisbt/view.php?id=2109 + # fixed in upstream development version 2.29 + DATA if MacOS.lion? + end + def install ENV.x11 # Various language bindings fail with 32/64 issues. @@ -49,3 +56,29 @@ class Graphviz < Formula end end end + +__END__ +diff --git a/lib/gvc/Makefile.in b/lib/gvc/Makefile.in +index 2d345a0..67183f2 100644 +--- a/lib/gvc/Makefile.in ++++ b/lib/gvc/Makefile.in +@@ -41,8 +41,7 @@ host_triplet = @host@ + @WITH_WIN32_TRUE@am__append_1 = -O0 + @WITH_ORTHO_TRUE@am__append_2 = $(top_builddir)/lib/ortho/libortho_C.la + @WITH_ORTHO_TRUE@am__append_3 = $(top_builddir)/lib/ortho/libortho_C.la +-@ENABLE_LTDL_TRUE@am__append_4 = $(LIBLTDL) $(LIBLTDL_LDFLAGS) +-@ENABLE_LTDL_TRUE@am__append_5 = $(LIBLTDL) ++@ENABLE_LTDL_TRUE@am__append_4 = @LIBLTDL@ $(LIBLTDL_LDFLAGS) + subdir = lib/gvc + DIST_COMMON = $(noinst_HEADERS) $(pkginclude_HEADERS) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ +@@ -87,8 +86,7 @@ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)" \ + "$(DESTDIR)$(pkgincludedir)" + LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) + am__DEPENDENCIES_1 = +-@ENABLE_LTDL_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) \ +-@ENABLE_LTDL_TRUE@ $(am__DEPENDENCIES_1) ++@ENABLE_LTDL_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) + am__DEPENDENCIES_3 = $(top_builddir)/lib/pack/libpack_C.la \ + $(top_builddir)/lib/xdot/libxdot_C.la \ + $(top_builddir)/lib/common/libcommon_C.la $(am__append_2) \ |
