freetds: add flag for Kerberos support

Closes Homebrew/homebrew#28970.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Kris Zaragoza 2014-05-05 09:14:00 -04:00 committed by Adam Vandenberg
parent 95e57203e8
commit 15f6c6196f

View file

@ -17,6 +17,7 @@ class Freetds < Formula
option "enable-msdblib", "Enable Microsoft behavior in the DB-Library API where it diverges from Sybase's"
option "enable-sybase-compat", "Enable close compatibility with Sybase's ABI, at the expense of other features"
option "enable-odbc-wide", "Enable odbc wide, prevent unicode - MemoryError's"
option "enable-krb", "Enable Kerberos support"
depends_on "pkg-config" => :build
depends_on "unixodbc" => :optional
@ -48,6 +49,10 @@ class Freetds < Formula
args << "--enable-odbc-wide"
end
if build.include? "enable-krb"
args << "--enable-krb5"
end
ENV.universal_binary if build.universal?
system "./configure", *args
system 'make'