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:
parent
acdf3dc57d
commit
a867bf1f20
1 changed files with 10 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue