1dcb4cddd2
Libdnet is used by snort, but the manual autoreconf statements cause a build error on Lion. This is likely due to some subtle changes in autoconf-2.69. * Remove manual autotools statements. * Set `ACLOCAL` to include the `config` directory. * Use `autoreconf -ivf` the way the `autoconf` docs recommend. * Remove the unrecognized `--disable-debug` flag. This compiles with or without the `--with-python` flag, and it functions well in `snort` using all five compilers from XCode 4.3.2 and 4.0.2 on Lion and Snow Leopard. It's interesting to see software from 2007 build the python bindings and install them into the HB site-packages correctly. Fixes Homebrew/homebrew#12174 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
31 lines
777 B
Ruby
31 lines
777 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 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
|