mapnik: link to correct Postgres lib

Without this change Mapnik's postgis.input plugin will end up linking to the
apple provided `/usr/lib/libpg.5.dylib`, which will cause all sorts of odd and
broken behavior at runtime.

Closes Homebrew/homebrew#20003.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Dane Springmeyer 2013-05-22 17:25:50 -06:00 committed by Adam Vandenberg
parent 5bd5f1d901
commit 3dbf389fad

View file

@ -24,6 +24,7 @@ class Mapnik < Formula
depends_on 'jpeg'
depends_on 'boost'
depends_on 'gdal' => :optional
depends_on 'postgresql' => :optional
depends_on 'geos' => :optional
depends_on 'cairo' => :optional
@ -70,6 +71,7 @@ class Mapnik < Formula
end
args << "GEOS_CONFIG=#{Formula.factory('geos').opt_prefix}/bin/geos-config" if build.with? 'geos'
args << "GDAL_CONFIG=#{Formula.factory('gdal').opt_prefix}/bin/gdal-config" if build.with? 'gdal'
args << "PG_CONFIG=#{Formula.factory('postgresql').opt_prefix}/bin/pg_config" if build.with? 'postgresql'
system "python", *args