2010-06-22 16:36:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mdbtools < Formula
|
2010-06-22 16:36:10 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/mdbtools/'
|
|
|
|
# Last stable release won't build on OS X, but HEAD from CVS does.
|
|
|
|
head "cvs://:pserver:anonymous@mdbtools.cvs.sourceforge.net:/cvsroot/mdbtools:mdbtools"
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-22 16:36:10 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gawk' => :optional # To generate docs
|
|
|
|
|
2012-02-27 03:44:55 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
2012-02-28 15:39:22 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-02-27 03:44:55 +00:00
|
|
|
end
|
|
|
|
|
2010-06-22 16:36:10 +00:00
|
|
|
def install
|
|
|
|
inreplace 'autogen.sh', 'libtool', 'glibtool'
|
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
system "NOCONFIGURE='yes' ./autogen.sh"
|
2010-06-22 16:36:10 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|