e555869ec8
- new download link for mapnik 2.0.0 - and tweaks to avoid needing external scons and to properly set the CC/CXX/JOBS so that the mapnik build scripts will pick them up Closes Homebrew/homebrew#8177. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
34 lines
861 B
Ruby
34 lines
861 B
Ruby
require 'formula'
|
|
|
|
class Mapnik < Formula
|
|
url 'https://github.com/downloads/mapnik/mapnik/mapnik-2.0.0.tar.bz2'
|
|
md5 '499c6a61544014b9bc2a7c978f963ef3'
|
|
homepage 'http://www.mapnik.org/'
|
|
head 'https://github.com/mapnik/mapnik.git'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libtiff'
|
|
depends_on 'jpeg'
|
|
depends_on 'proj'
|
|
depends_on 'icu4c'
|
|
depends_on 'boost'
|
|
depends_on 'cairomm' => :optional
|
|
|
|
def install
|
|
ENV.x11 # for freetype-config
|
|
|
|
icu = Formula.factory("icu4c")
|
|
system "python",
|
|
"scons/scons.py",
|
|
"configure",
|
|
"CC=\"#{ENV.cc}\"",
|
|
"CXX=\"#{ENV.cxx}\"",
|
|
"JOBS=#{ENV.make_jobs}",
|
|
"PREFIX=#{prefix}",
|
|
"ICU_INCLUDES=#{icu.include}",
|
|
"ICU_LIBS=#{icu.lib}"
|
|
system "python",
|
|
"scons/scons.py",
|
|
"install"
|
|
end
|
|
end
|