From 138c6dc132b448a0cc88470f3233d0ee2d63b60f Mon Sep 17 00:00:00 2001 From: Sean Knox Date: Wed, 21 Aug 2013 20:35:51 -0700 Subject: osm2pgsql: fix protobuf-c support Closes #22058. Signed-off-by: Adam Vandenberg --- Library/Formula/osm2pgsql.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Library/Formula/osm2pgsql.rb') 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' -- cgit v1.2.3