2010-11-09 22:05:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mapnik < Formula
|
2011-10-18 20:48:00 +00:00
|
|
|
url 'https://github.com/downloads/mapnik/mapnik/mapnik-2.0.0.tar.bz2'
|
|
|
|
md5 '499c6a61544014b9bc2a7c978f963ef3'
|
2010-11-09 22:05:44 +00:00
|
|
|
homepage 'http://www.mapnik.org/'
|
2011-10-18 20:48:00 +00:00
|
|
|
head 'https://github.com/mapnik/mapnik.git'
|
2010-11-09 22:05:44 +00:00
|
|
|
|
|
|
|
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")
|
2011-10-18 20:48:00 +00:00
|
|
|
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"
|
2010-11-09 22:05:44 +00:00
|
|
|
end
|
|
|
|
end
|