homebrew-core/Formula/mapnik.rb

28 lines
666 B
Ruby
Raw Normal View History

require 'formula'
class Mapnik < Formula
url 'http://download.berlios.de/mapnik/mapnik-2.0.0.tar.gz'
homepage 'http://www.mapnik.org/'
md5 '3b0dacbf98f24dbcf113c6f4b1d7f0c8'
head 'http://svn.mapnik.org/trunk', :using => :svn
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