From 2345df2c634af4361c7e9b990bb6de7be5cbfc62 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Mon, 29 Sep 2014 02:36:34 +0100 Subject: Clam: OpenSSL dep We’ve been picking up on the system OpenSSL here as well. Executing an “otool -L” on the clamav binaries reveals: /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) This fixes that. /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) Closes #32774. Signed-off-by: Jack Nagel --- Library/Formula/clamav.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/clamav.rb b/Library/Formula/clamav.rb index 475077e90..f8fa17b26 100644 --- a/Library/Formula/clamav.rb +++ b/Library/Formula/clamav.rb @@ -12,6 +12,8 @@ class Clamav < Formula sha1 "4d2596ed31086455d7e87bade419589da46a3ef3" => :lion end + depends_on "openssl" + skip_clean "share/clamav" def install @@ -21,7 +23,8 @@ class Clamav < Formula "--libdir=#{lib}", "--sysconfdir=#{etc}", "--disable-zlib-vcheck", - "--with-zlib=#{MacOS.sdk_path}/usr" + "--with-zlib=#{MacOS.sdk_path}/usr", + "--with-openssl=#{Formula["openssl"].opt_prefix}" system "make", "install" end end -- cgit v1.2.3