libnet: remove old automake hack

This commit is contained in:
Jack Nagel 2014-05-16 23:34:38 -05:00
parent e056d19654
commit 4dae8c1df4

View file

@ -24,14 +24,7 @@ class Libnet < Formula
end
def install
# Compatibility with Automake 1.13 and newer.
# Reported upstream:
# https://github.com/sam-github/libnet/issues/28
mv 'configure.in', 'configure.ac'
inreplace 'configure.ac', 'AM_CONFIG_HEADER', 'AC_CONFIG_HEADERS'
(buildpath/'m4').mkpath
system "autoreconf --force --install"
system "autoreconf", "-fvi"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
inreplace "src/libnet_link_bpf.c", "#include <net/bpf.h>", "" # Per MacPorts