blob: 61cfef644cf3d2d0c72d9f58d3c877c8356064e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
require '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'
if MacOS.xcode_version >= "4.3"
# when and if the tarball provides configure, remove autogen.sh and these deps
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
cd 'libnet'
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"
end
end
|