diff options
| author | Sean Knox | 2013-08-21 20:35:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-23 21:32:13 -0700 |
| commit | 138c6dc132b448a0cc88470f3233d0ee2d63b60f (patch) | |
| tree | d01cd9c8c75c314419f8b0fa082be4b98463f9e2 /Library/Formula/osm2pgsql.rb | |
| parent | 626c28ebf7009fa70158861d4706bbfbaaf376d6 (diff) | |
| download | homebrew-138c6dc132b448a0cc88470f3233d0ee2d63b60f.tar.bz2 | |
osm2pgsql: fix protobuf-c support
Closes #22058.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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' |
