aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mapnik.rb
diff options
context:
space:
mode:
authorDane Springmeyer2013-11-05 09:39:18 -0800
committerAdam Vandenberg2013-11-29 19:16:33 -0800
commitccba32ab5793f95f22f8578e72a8bae5ad501381 (patch)
treea412cc3ded080cc958b166ca7ae18c8809b58892 /Library/Formula/mapnik.rb
parentc23aecbfbe2fb876f20c566a12895e4a3f5bd1e1 (diff)
downloadhomebrew-ccba32ab5793f95f22f8578e72a8bae5ad501381.tar.bz2
mapnik: freetype & png are required so configure them properly
Closes #24006. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/mapnik.rb')
-rw-r--r--Library/Formula/mapnik.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/mapnik.rb b/Library/Formula/mapnik.rb
index 6e27820ff..526cd838b 100644
--- a/Library/Formula/mapnik.rb
+++ b/Library/Formula/mapnik.rb
@@ -14,8 +14,8 @@ class Mapnik < Formula
depends_on 'pkg-config' => :build
depends_on :python
- depends_on :freetype
- depends_on :libpng
+ depends_on 'freetype'
+ depends_on 'libpng'
depends_on 'libtiff'
depends_on 'proj'
depends_on 'icu4c'
@@ -33,7 +33,9 @@ class Mapnik < Formula
boost = Formula.factory('boost').opt_prefix
proj = Formula.factory('proj').opt_prefix
jpeg = Formula.factory('jpeg').opt_prefix
+ libpng = Formula.factory('libpng').opt_prefix
libtiff = Formula.factory('libtiff').opt_prefix
+ freetype = Formula.factory('freetype').opt_prefix
# mapnik compiles can take ~1.5 GB per job for some .cpp files
# so lets be cautious by limiting to CPUS/2
@@ -49,12 +51,16 @@ class Mapnik < Formula
"PYTHON_PREFIX=#{prefix}", # Install to Homebrew's site-packages
"JPEG_INCLUDES=#{jpeg}/include",
"JPEG_LIBS=#{jpeg}/lib",
+ "PNG_INCLUDES=#{libpng}/include",
+ "PNG_LIBS=#{libpng}/lib",
"TIFF_INCLUDES=#{libtiff}/include",
"TIFF_LIBS=#{libtiff}/lib",
"BOOST_INCLUDES=#{boost}/include",
"BOOST_LIBS=#{boost}/lib",
"PROJ_INCLUDES=#{proj}/include",
- "PROJ_LIBS=#{proj}/lib" ]
+ "PROJ_LIBS=#{proj}/lib",
+ "FREETYPE_CONFIG=#{Formula.factory('freetype').opt_prefix}/bin/freetype-config"
+ ]
if build.with? 'cairo'
args << "CAIRO=True" # cairo paths will come from pkg-config