From 0a2dc960b8f97ac171a2a65b3ef26644f6e4b7af Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 22 Apr 2014 17:04:44 -0500 Subject: freetds: use Homebrew's openssl --- Library/Formula/freetds.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/freetds.rb b/Library/Formula/freetds.rb index acc46ff7b..e6b161342 100644 --- a/Library/Formula/freetds.rb +++ b/Library/Formula/freetds.rb @@ -20,15 +20,17 @@ class Freetds < Formula depends_on "pkg-config" => :build depends_on "unixodbc" => :optional + depends_on "openssl" def install system "autoreconf -i" if build.head? - args = %W[--prefix=#{prefix} - --with-openssl=#{MacOS.sdk_path}/usr - --with-tdsver=7.1 - --mandir=#{man} - ] + args = %W[ + --prefix=#{prefix} + --with-openssl=#{Formula["openssl"].opt_prefix}" + --with-tdsver=7.1 + --mandir=#{man} + ] if build.with? "unixodbc" args << "--with-unixodbc=#{Formula['unixodbc'].prefix}" -- cgit v1.2.3