diff options
| author | Max Howell | 2012-02-27 00:41:17 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-27 03:35:11 +0000 |
| commit | b0c81fcc5d5744fdad7b1eb0f8ccbf455b2573d3 (patch) | |
| tree | fcde6ef2c5ebc23259d01ac7ecb892e835519b25 /Library/Formula/libtool.rb | |
| parent | 28f7e01875b3d56b1c4ac720f7e4f9add77e7d31 (diff) | |
| download | homebrew-b0c81fcc5d5744fdad7b1eb0f8ccbf455b2573d3.tar.bz2 | |
Autoconf, Automake and Libtool
We need these now for Xcode-4.3/CLT4X installations.
Also prevent m4 error in installer. And prevent brew doctor complaining if we're Xcode 4.3 or above.
Closes #10349. Fixes #10423. Refs #9179.
Diffstat (limited to 'Library/Formula/libtool.rb')
| -rw-r--r-- | Library/Formula/libtool.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/libtool.rb b/Library/Formula/libtool.rb new file mode 100644 index 000000000..ca569b96d --- /dev/null +++ b/Library/Formula/libtool.rb @@ -0,0 +1,31 @@ +require 'formula' + +# Xcode 4.3 provides the Apple libtool +# This is not the same, but as a result we must install these as glibtool etc. + +class Libtool < Formula + homepage 'http://www.gnu.org/software/libtool/' + url 'http://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz' + md5 'b32b04148ecdd7344abc6fe8bd1bb021' + + if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/libtoolize" + keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf." + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", "--program-prefix=g", + "--enable-ltdl-install" + system "make install" + end + + def caveats; <<-EOS.undent + In order to prevent conflicts with Apple's own libtool we have prepended a "g" + so, you have instead: glibtool and glibtoolize. + EOS + end + + def test + system "#{HOMEBREW_PREFIX}/bin/glibtoolize --version" + end +end |
