homebrew-core/Formula/freetds.rb
Etienne Segonzac 9126d512c6 freetds: fix download link
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-02 21:26:43 -07:00

31 lines
795 B
Ruby

require 'formula'
class Freetds < Formula
homepage 'http://www.freetds.org/'
url 'http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz'
sha1 '3ab06c8e208e82197dc25d09ae353d9f3be7db52'
depends_on "pkg-config" => :build
depends_on "unixodbc" if ARGV.include? "--with-unixodbc"
def options
[['--with-unixodbc', "Compile against unixODBC."]]
end
def install
args = %W[--prefix=#{prefix}
--with-openssl=/usr/bin
--with-tdsver=7.1
--mandir=#{man}
]
if ARGV.include? "--with-unixodbc"
args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}"
end
system "./configure", *args
system 'make'
ENV.j1 # Or fails to install on multi-core machines
system 'make install'
end
end