Created
May 20, 2011 21:42
-
-
Save springmeyer/983887 to your computer and use it in GitHub Desktop.
mapnik2 homebrew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Mapnik2 < Formula | |
head 'http://svn.mapnik.org/trunk/', :using => :svn | |
homepage 'http://www.mapnik.org/' | |
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}", | |
"JOBS=2", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should line #4 be like: