mapnik 0.7.1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Aleksandar Topuzovic 2010-11-09 23:05:44 +01:00 committed by Adam Vandenberg
parent b0434e37c2
commit 23ac8e4124

31
Formula/mapnik.rb Normal file
View file

@ -0,0 +1,31 @@
require 'formula'
class Mapnik < Formula
url 'http://download.berlios.de/mapnik/mapnik-0.7.1.tar.gz'
homepage 'http://www.mapnik.org/'
md5 '3a070fdd7c6a3367ad78d95c2387b03b'
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
# Allow compilation against boost 1.46
inreplace ["src/datasource_cache.cpp", "src/libxml2_loader.cpp", "src/load_map.cpp", "src/tiff_reader.cpp"],
"#include <boost/filesystem/operations.hpp>",
"#define BOOST_FILESYSTEM_VERSION 2\n#include <boost/filesystem/operations.hpp>"
icu = Formula.factory("icu4c")
system "scons",
"PREFIX=#{prefix}",
"ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}",
"install"
end
end