diff options
| author | nibbles 2bits | 2012-05-10 00:34:31 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-05-10 06:42:52 -0700 |
| commit | c2df1cf497add618c56f9ff12097efa00e5e8a0e (patch) | |
| tree | ab0be23c3b56fda84ca652b0f51c0612818cb03e /Library | |
| parent | c6d3538c33476f4323f0fa88e1c6f91280b7b62e (diff) | |
| download | homebrew-c2df1cf497add618c56f9ff12097efa00e5e8a0e.tar.bz2 | |
libdnet: fix for autoreconf error on Lion
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 #12174
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libdnet.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Library/Formula/libdnet.rb b/Library/Formula/libdnet.rb index 17d9fcf4b..11e5684bc 100644 --- a/Library/Formula/libdnet.rb +++ b/Library/Formula/libdnet.rb @@ -15,16 +15,15 @@ class Libdnet < Formula 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" + # autoreconf to get '.dylib' extension on shared lib + ENV['ACLOCAL'] = 'aclocal -I config' + system 'autoreconf', '-ivf' - args = ["--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--mandir=#{man}"] + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + --mandir=#{man} + ] args << "--with-python" if ARGV.include? "--with-python" system "./configure", *args system "make install" |
