diff options
Diffstat (limited to 'Library/Formula/osm2pgsql.rb')
| -rw-r--r-- | Library/Formula/osm2pgsql.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/osm2pgsql.rb b/Library/Formula/osm2pgsql.rb index a99e6b4c5..5bb4a6d1b 100644 --- a/Library/Formula/osm2pgsql.rb +++ b/Library/Formula/osm2pgsql.rb @@ -13,9 +13,12 @@ class Osm2pgsql < Formula depends_on "protobuf-c" => :optional def install - proj = Formula.factory('proj') + args = ["--with-proj=#{Formula.factory('proj').opt_prefix}"] + if build.with? "protobuf-c" + args << "--with-protobuf-c=#{Formula.factory('protobuf-c').opt_prefix}" + end system "./autogen.sh" - system "./configure", "--with-proj=#{proj.opt_prefix}" + system "./configure", *args system "make" bin.install "osm2pgsql" (share+'osm2pgsql').install 'default.style' |
