parent
089072d68a
commit
30050e3ded
|
@ -1,29 +1,12 @@
|
||||||
require 'formula'
|
require 'formula'
|
||||||
|
|
||||||
class Libnet < Formula
|
class Libnet < Formula
|
||||||
url "https://github.com/sam-github/libnet/tarball/libnet-1.1.4"
|
|
||||||
md5 "0cb6c04063c1db37c91af08c76d25134"
|
|
||||||
head 'https://github.com/sam-github/libnet.git'
|
|
||||||
homepage 'https://github.com/sam-github/libnet'
|
homepage 'https://github.com/sam-github/libnet'
|
||||||
|
url 'http://sourceforge.net/projects/libnet-dev/files/libnet-1.1.6.tar.gz'
|
||||||
if MacOS.xcode_version >= "4.3"
|
sha1 'dffff71c325584fdcf99b80567b60f8ad985e34c'
|
||||||
# when and if the tarball provides configure, remove autogen.sh and these deps
|
|
||||||
depends_on "automake" => :build
|
|
||||||
depends_on "libtool" => :build
|
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
cd 'libnet'
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
||||||
inreplace "autogen.sh", "libtoolize", "glibtoolize"
|
|
||||||
system "./autogen.sh"
|
|
||||||
|
|
||||||
unless MacOS.leopard?
|
|
||||||
cp "/usr/share/libtool/config/config.guess", "."
|
|
||||||
cp "/usr/share/libtool/config/config.sub", "."
|
|
||||||
end
|
|
||||||
|
|
||||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
||||||
touch 'doc/man/man3/libnet.3'
|
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue