Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created November 4, 2010 23:12
Show Gist options
  • Save springmeyer/663375 to your computer and use it in GitHub Desktop.
Save springmeyer/663375 to your computer and use it in GitHub Desktop.
homebrew fix to boost formula to support mapnik2
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb
index 3633158..cf405c4 100644
--- a/Library/Formula/boost.rb
+++ b/Library/Formula/boost.rb
@@ -5,6 +5,8 @@ class Boost <Formula
url 'http://downloads.sourceforge.net/project/boost/boost/1.44.0/boost_1_44_0.tar.bz2'
md5 'f02578f5218f217a9f20e9c30e119c6a'
+ depends_on 'icu4c'
+
def options
[['--with-mpi', "Enables MPI support"]]
end
@@ -36,7 +38,7 @@ class Boost <Formula
file.write "using darwin : : #{ENV['CXX']} ;\n"
file.write "using mpi ;\n" if ARGV.include? '--with-mpi'
end
-
+ icu = Formula.factory "icu4c"
# we specify libdir too because the script is apparently broken
system "./bootstrap.sh", "--prefix=#{prefix}", "--libdir=#{lib}"
system "./bjam", "--prefix=#{prefix}",
@@ -44,6 +46,8 @@ class Boost <Formula
"-j#{Hardware.processor_count}",
"--layout=tagged",
"--user-config=user-config.jam",
+ "-sHAVE_ICU=1",
+ "-sICU_PATH='#{icu.prefix}'",
"threading=multi",
"install"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment