2009-11-05 02:43:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Freetds < Formula
|
|
|
|
homepage 'http://www.freetds.org/'
|
2012-07-02 20:44:58 +00:00
|
|
|
url 'http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz'
|
2012-05-25 15:58:52 +00:00
|
|
|
sha1 '3ab06c8e208e82197dc25d09ae353d9f3be7db52'
|
|
|
|
|
2012-08-28 05:04:48 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2013-02-01 10:33:41 +00:00
|
|
|
depends_on "unixodbc" => :optional
|
2009-11-05 02:43:32 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-22 03:34:10 +00:00
|
|
|
args = %W[--prefix=#{prefix}
|
|
|
|
--with-openssl=/usr/bin
|
|
|
|
--with-tdsver=7.1
|
|
|
|
--mandir=#{man}
|
|
|
|
]
|
2012-05-25 15:58:52 +00:00
|
|
|
|
2012-08-28 05:04:48 +00:00
|
|
|
if build.include? "with-unixodbc"
|
2012-05-25 15:58:52 +00:00
|
|
|
args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-11-05 02:43:32 +00:00
|
|
|
system 'make'
|
2011-08-24 21:23:36 +00:00
|
|
|
ENV.j1 # Or fails to install on multi-core machines
|
2009-11-05 02:43:32 +00:00
|
|
|
system 'make install'
|
|
|
|
end
|
|
|
|
end
|