aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDane Springmeyer2013-05-22 17:25:50 -0600
committerAdam Vandenberg2013-05-23 09:29:01 -0700
commit418d31c6e301e5d8e29175e755b77c12d5062a08 (patch)
tree896de4f9e877de00c9a7dee3b6421b06826781d1 /Library/Formula
parente8cec18e305b1894bed4b061ecf4dfa2f9a711b7 (diff)
downloadhomebrew-418d31c6e301e5d8e29175e755b77c12d5062a08.tar.bz2
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 #20003. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mapnik.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/mapnik.rb b/Library/Formula/mapnik.rb
index 5d88c72a4..f62a5bd94 100644
--- a/Library/Formula/mapnik.rb
+++ b/Library/Formula/mapnik.rb
@@ -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