freetds.rb: additional options

Add option --enable-msdblib so that users can get SQL Server compatibility
Add option --enable-sybase-compat so that users can get Sybase compatibility

Closes Homebrew/homebrew#22656.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Marc Abramowitz 2013-09-18 11:04:23 -07:00 committed by Adam Vandenberg
parent acdf3dc57d
commit a867bf1f20

View file

@ -16,6 +16,8 @@ class Freetds < Formula
end
option :universal
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"
def install
system "autoreconf -i" if build.head?
@ -30,6 +32,14 @@ class Freetds < Formula
args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}"
end
if build.include? "enable-msdblib"
args << "--enable-msdblib"
end
if build.include? "enable-sybase-compat"
args << "--enable-sybase-compat"
end
ENV.universal_binary if build.universal?
system "./configure", *args
system 'make'