homebrew-core/Formula/libdnet.rb
Jack Nagel ade63d52f8 audit: automake, autoconf, and libtool are build-time deps
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-28 11:36:12 -06:00

26 lines
813 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 ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
# "manual" autoreconf to get '.dylib' extension on shared lib
system "aclocal --force -I config"
system "glibtoolize --copy --force"
system "autoconf --force"
system "autoheader --force"
system "automake --add-missing --copy --force-missing"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
end
end