forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapnik071.rb
27 lines (23 loc) · 868 Bytes
/
mapnik071.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'
class Mapnik071 < Formula
homepage 'http://www.mapnik.org/'
url 'http://download.berlios.de/mapnik/mapnik-0.7.1.tar.gz'
sha1 '5fc9152574ac72c4063af9a4716739c793ec7b5b'
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 'freetype'
depends_on 'cairomm' => :optional
def install
# 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["icu4c"]
scons "PREFIX=#{prefix}", "ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}", "install"
end
end