0a025fb2cc
Libdnet uses `autoreconf` and has deps on automake and libtool when using XCode-4.3 or greater; however, the previous commit I authored has the wrong conditional where it also checks if the formula is building HEAD. That's not right. There is no HEAD, and `autoreconf` is used for stable. * Remove `if ARGV.build_head?` This was tested on Lion by removing automake, autoconf, and libtool then using `brew install libdnet` which now builds all the deps. It was also tested on SL using the system autotools without any ENV vars set, such as LIBTOOLIZE. Tested with XCode-4.3.2, 4.0.2. Fixes Homebrew/homebrew#12280. Closes Homebrew/homebrew#12286. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
31 lines
756 B
Ruby
31 lines
756 B
Ruby
require 'formula'
|
|
|
|
class Libdnet < Formula
|
|
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
|
|
homepage 'http://code.google.com/p/libdnet/'
|
|
md5 '9253ef6de1b5e28e9c9a62b882e44cc9'
|
|
|
|
if MacOS.xcode_version >= '4.3'
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
def options
|
|
[['--with-python', 'Build Python module too.']]
|
|
end
|
|
|
|
def install
|
|
# autoreconf to get '.dylib' extension on shared lib
|
|
ENV['ACLOCAL'] = 'aclocal -I config'
|
|
system 'autoreconf', '-ivf'
|
|
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--mandir=#{man}
|
|
]
|
|
args << "--with-python" if ARGV.include? "--with-python"
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|