2010-05-06 03:07:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libdnet < Formula
|
2010-05-06 03:07:06 +00:00
|
|
|
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
|
|
|
|
homepage 'http://code.google.com/p/libdnet/'
|
|
|
|
md5 '9253ef6de1b5e28e9c9a62b882e44cc9'
|
|
|
|
|
|
|
|
def install
|
2011-10-17 23:37:02 +00:00
|
|
|
# "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"
|
|
|
|
|
2010-05-06 03:07:06 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|