2014-04-26 23:58:08 +00:00
|
|
|
require "formula"
|
2010-03-17 15:48:11 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clamav < Formula
|
2014-04-26 23:58:08 +00:00
|
|
|
homepage "http://www.clamav.net/"
|
|
|
|
url "https://downloads.sourceforge.net/clamav/0.98/clamav-0.98.1.tar.gz"
|
|
|
|
sha1 "9f04c0e81463c36f7e58d18f16d1b88f3332dcb8"
|
2013-04-24 19:26:45 +00:00
|
|
|
|
2014-04-26 23:58:08 +00:00
|
|
|
skip_clean "share"
|
|
|
|
|
|
|
|
# Upstream patch for clang compatibility
|
|
|
|
# https://bugzilla.clamav.net/show_bug.cgi?id=10757
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/119480/trunk/dports/sysutils/clamav/files/patch-libclamav-LoopInfo.h.diff"
|
|
|
|
sha1 "647bfdd878a8db4b2a7af42c9887b1ae36c5e8de"
|
|
|
|
end
|
2010-03-17 15:48:11 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-26 23:58:08 +00:00
|
|
|
(share/"clamav").mkpath
|
2013-04-24 19:26:45 +00:00
|
|
|
|
2012-08-31 19:24:38 +00:00
|
|
|
args = %W{--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
2012-09-03 03:12:49 +00:00
|
|
|
--disable-zlib-vcheck
|
2013-04-24 19:26:45 +00:00
|
|
|
--libdir=#{lib}
|
|
|
|
--sysconfdir=#{etc}}
|
2012-08-31 19:24:38 +00:00
|
|
|
args << "--with-zlib=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2014-04-26 23:58:08 +00:00
|
|
|
system "make", "install"
|
2010-03-17 15:48:11 +00:00
|
|
|
end
|
|
|
|
end
|