2011-03-10 05:11:03 +00:00
|
|
|
class Afflib < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Advanced Forensic Format"
|
2014-12-07 04:41:09 +00:00
|
|
|
homepage "https://github.com/sshock/AFFLIBv3"
|
2016-11-26 08:36:00 +00:00
|
|
|
url "https://github.com/sshock/AFFLIBv3/archive/v3.7.11.tar.gz"
|
|
|
|
sha256 "931a6f3399c6397a4ac2d84664d80d7ae3e81de55f98e781ac43319cabfedeb7"
|
2010-09-20 20:02:55 +00:00
|
|
|
|
2014-07-03 12:32:20 +00:00
|
|
|
bottle do
|
2014-12-07 04:53:40 +00:00
|
|
|
cellar :any
|
2016-11-26 08:48:43 +00:00
|
|
|
sha256 "c381e7bbdae4052f8dbf664a122ba879ba76c027fcbd43ab85e1241e5d147a01" => :sierra
|
|
|
|
sha256 "088a33309187a61f5b9e2c66c005d5398ec9159bcabd623a672701242a3b77a0" => :el_capitan
|
|
|
|
sha256 "fcde02aa5b1176477451d688bbac7fd3a0aa99e09657681a16ac37e9b2fa664e" => :yosemite
|
2014-07-03 12:32:20 +00:00
|
|
|
end
|
|
|
|
|
2016-11-26 08:36:00 +00:00
|
|
|
option "with-python", "Build with python support"
|
|
|
|
|
2014-06-01 01:15:09 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2016-11-22 09:23:58 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-12-07 04:41:09 +00:00
|
|
|
depends_on "openssl"
|
2016-11-22 09:23:58 +00:00
|
|
|
depends_on :osxfuse => :optional
|
2016-11-26 08:36:00 +00:00
|
|
|
depends_on :python if build.with?("python") && MacOS.version <= :snow_leopard
|
2010-09-20 20:02:55 +00:00
|
|
|
|
|
|
|
def install
|
2016-11-26 08:36:00 +00:00
|
|
|
ENV.prepend "LDFLAGS", "-L/usr/lib -lcurl -lexpat"
|
|
|
|
|
2016-11-22 09:23:58 +00:00
|
|
|
args = ["--enable-s3"]
|
2014-01-08 15:21:27 +00:00
|
|
|
|
2016-11-26 08:36:00 +00:00
|
|
|
if build.with? "python"
|
|
|
|
inreplace "m4/acinclude.m4",
|
|
|
|
"PYTHON_LDFLAGS=\"-L$ac_python_libdir -lpython$ac_python_version\"",
|
|
|
|
"PYTHON_LDFLAGS=\"-undefined dynamic_lookup\""
|
|
|
|
args << "--enable-python"
|
|
|
|
end
|
2014-01-08 15:21:27 +00:00
|
|
|
|
2014-03-01 21:52:25 +00:00
|
|
|
if build.with? "osxfuse"
|
2016-11-22 09:23:58 +00:00
|
|
|
ENV.append "CPPFLAGS", "-I/usr/local/include/osxfuse"
|
|
|
|
ENV.append "LDFLAGS", "-L/usr/local/lib"
|
2014-01-08 15:21:27 +00:00
|
|
|
args << "--enable-fuse"
|
2016-11-22 09:23:58 +00:00
|
|
|
else
|
|
|
|
args << "--disable-fuse"
|
2014-01-08 15:21:27 +00:00
|
|
|
end
|
|
|
|
|
2016-11-26 08:36:00 +00:00
|
|
|
system "autoreconf", "-fiv"
|
2016-11-22 09:23:58 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
*args
|
2015-02-23 14:07:21 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/affcat", "-v"
|
2010-09-20 20:02:55 +00:00
|
|
|
end
|
|
|
|
end
|