mapnik: fix broken compile against cairo/cairomm after Homebrew/homebrew#17032

Fixes https://github.com/mapnik/mapnik/issues/1753

Closes Homebrew/homebrew#18458.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Dane Springmeyer 2013-03-13 12:05:53 -07:00 committed by Adam Vandenberg
parent 05a64a3706
commit 956f06348e

View file

@ -64,8 +64,9 @@ class Mapnik < Formula
"PROJ_LIBS=#{proj}/lib" ]
if build.with? 'cairo'
args << "CAIRO_INCLUDES=#{cairo}/include"
args << "CAIRO_LIBS=#{cairo}/lib"
args << "CAIRO=True" # cairo paths will come from pkg-config
else
args << "CAIRO=False"
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'