2010-11-09 22:05:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mapnik < Formula
|
2011-09-27 09:40:12 +00:00
|
|
|
url 'http://download.berlios.de/mapnik/mapnik-2.0.0.tar.gz'
|
2010-11-09 22:05:44 +00:00
|
|
|
homepage 'http://www.mapnik.org/'
|
2011-09-27 09:40:12 +00:00
|
|
|
md5 '3b0dacbf98f24dbcf113c6f4b1d7f0c8'
|
|
|
|
head 'http://svn.mapnik.org/trunk', :using => :svn
|
2010-11-09 22:05:44 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'scons' => :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 "scons",
|
|
|
|
"PREFIX=#{prefix}",
|
|
|
|
"ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}",
|
|
|
|
"install"
|
|
|
|
end
|
|
|
|
end
|