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
|
|
|
homepage 'http://code.google.com/p/libdnet/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://libdnet.googlecode.com/files/libdnet-1.12.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '71302be302e84fc19b559e811951b5d600d976f8'
|
2010-05-06 03:07:06 +00:00
|
|
|
|
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
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
2012-03-13 03:55:07 +00:00
|
|
|
|
2013-01-06 16:37:35 +00:00
|
|
|
# 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
|
2013-01-06 16:37:35 +00:00
|
|
|
|
2010-05-06 03:07:06 +00:00
|
|
|
def install
|
2012-05-10 07:34:31 +00:00
|
|
|
# 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"
|
2011-10-17 23:37:02 +00:00
|
|
|
|
2012-05-10 07:34:31 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
]
|
2013-01-21 09:33:56 +00:00
|
|
|
args << "--with-python" if build.with? "python"
|
2012-03-13 03:55:07 +00:00
|
|
|
system "./configure", *args
|
2010-05-06 03:07:06 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-01-06 16:37:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
__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
|