homebrew-core/Formula/mdbtools.rb
Max Howell 06cb65df78 These now depend on automake for Xcode >= 4.3
Fixes Homebrew/homebrew#10559.

Also added missing deps for osm2pgsql.

Removed some ACLOCAL_FLAGS stuff as in theory this is not set in ENV.rb. Would like to see if it causes trouble. Should just work now.
2012-02-28 15:40:59 +00:00

24 lines
691 B
Ruby

require 'formula'
class Mdbtools < Formula
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"
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'gawk' => :optional # To generate docs
if MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
inreplace 'autogen.sh', 'libtool', 'glibtool'
system "NOCONFIGURE='yes' ./autogen.sh"
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make install"
end
end