2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-03 13:19:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Osm2pgsql < Formula
|
2010-04-06 19:14:40 +00:00
|
|
|
head 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/', :using => :svn
|
2009-10-03 13:19:16 +00:00
|
|
|
homepage 'http://wiki.openstreetmap.org/wiki/Osm2pgsql'
|
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "geos"
|
|
|
|
depends_on "proj"
|
|
|
|
|
2009-10-03 13:19:16 +00:00
|
|
|
def install
|
2010-06-01 23:24:57 +00:00
|
|
|
system "./autogen.sh"
|
|
|
|
system "./configure"
|
2009-10-03 13:19:16 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "osm2pgsql"
|
2011-05-26 13:23:12 +00:00
|
|
|
(share+'osm2pgsql').install 'default.style'
|
2009-10-03 13:19:16 +00:00
|
|
|
end
|
|
|
|
end
|