aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2012-12-14 12:26:15 +0100
committerAdam Vandenberg2012-12-14 10:12:53 -0800
commitd2f259fdb8258505c6edc50e8c530ec038b2e4b0 (patch)
treeccf217387d9ad552e2faa7c9b13ea11eec7a5282 /Library/Formula
parent0848bcf579c224c37d6c2373579331e5eef63b48 (diff)
downloadhomebrew-d2f259fdb8258505c6edc50e8c530ec038b2e4b0.tar.bz2
graphicsmagick: Do not install bundled libtool.
- Conflicts with `brew install libtool`. - Added maintainer-note that this will be fixed in next version. Closes #16570. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/graphicsmagick.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb
index ae745944d..c5053a587 100644
--- a/Library/Formula/graphicsmagick.rb
+++ b/Library/Formula/graphicsmagick.rb
@@ -27,6 +27,7 @@ class Graphicsmagick < Formula
option 'with-x', 'Compile with X11 support.'
option 'without-magick-plus-plus', "Don't build C++ library."
+ depends_on 'libtool' => :build
depends_on 'jpeg' => :recommended
depends_on :libpng
depends_on :x11 if build.include? 'with-x'
@@ -48,12 +49,19 @@ class Graphicsmagick < Formula
def install
# versioned stuff in main tree is pointless for us
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'
+ # Homebrew cleans ".la" files from lib but this configure looks for them.
+ # Maintainers: This will be fixed in the next version >= 1.3.18 (probably)
+ # Then the next line will not be needed anymore. Further the --with-ltdl... flags
+ # further down can be removed then!
+ inreplace 'configure', 'if test -f "$with_ltdl_lib/libltdl.la"', 'if test -f "$with_ltdl_lib/libltdl.a"'
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-shared", "--disable-static"]
args << "--without-magick-plus-plus" if build.include? 'without-magick-plus-plus'
args << "--disable-openmp" if MacOS.version == :leopard or not ENV.compiler == :gcc # libgomp unavailable
+ args << "--with-ltdl-include=#{Formula.factory('libtool').opt_prefix}/include" # avoid to ship it's own ltdl
+ args << "--with-ltdl-lib=#{Formula.factory('libtool').opt_prefix}/lib" # avoid to ship it's own ltdl
args << "--with-gslib" if ghostscript_srsly?
args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" \
unless ghostscript_fonts?