aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMarc Abramowitz2013-09-18 11:04:23 -0700
committerAdam Vandenberg2013-09-19 22:18:27 -0700
commit5b38cd2bac65676a738defe7c70348fbb51d4383 (patch)
treeec6bc78b52fb6c0cd6ef694789c8be512a063d83 /Library/Formula
parentbfe07b6811b2b0372e672eb5b4cf8a49aa6fd44e (diff)
downloadhomebrew-5b38cd2bac65676a738defe7c70348fbb51d4383.tar.bz2
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 #22656. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/freetds.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/freetds.rb b/Library/Formula/freetds.rb
index 631e78a2b..100ab8b15 100644
--- a/Library/Formula/freetds.rb
+++ b/Library/Formula/freetds.rb
@@ -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'