homebrew-core/Formula/libdnet.rb

54 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libdnet < Formula
homepage 'http://code.google.com/p/libdnet/'
url 'https://libdnet.googlecode.com/files/libdnet-1.12.tgz'
sha1 '71302be302e84fc19b559e811951b5d600d976f8'
2014-05-01 21:08:51 +00:00
bottle do
sha1 "6b1bda90b59e20c8a5243d975ae0d948658cd7ff" => :mavericks
sha1 "cf3cba764f268c117459cd55a95197d6ff5afd7b" => :mountain_lion
sha1 "a3ec593982b554c90c23ac4c9a8192e5683b28ea" => :lion
end
2014-04-05 00:38:29 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on :python => :optional
# Fix use of deprecated macros
# http://code.google.com/p/libdnet/issues/detail?id=27
2014-03-19 17:07:54 +00:00
patch :DATA
def install
# autoreconf to get '.dylib' extension on shared lib
2014-04-05 00:38:29 +00:00
ENV.append_path "ACLOCAL_PATH", "config"
system "autoreconf", "-ivf"
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--mandir=#{man}
]
args << "--with-python" if build.with? "python"
system "./configure", *args
system "make install"
end
end
__END__
diff --git a/configure.in b/configure.in
index 72ac63c..109dc63 100644
--- a/configure.in
+++ b/configure.in
@@ -10,7 +10,7 @@ AC_CONFIG_AUX_DIR(config)
AC_SUBST(ac_aux_dir)
AM_INIT_AUTOMAKE(libdnet, 1.12)
-AM_CONFIG_HEADER(include/config.h)
+AC_CONFIG_HEADERS(include/config.h)
dnl XXX - stop the insanity!@#$
AM_MAINTAINER_MODE