# Recipe for version 1.47.0 by Leandro Motta Barros <lmb@stackedboxes.org>, on Sun Sep 18 11:13:27 BRT 2011
compile_version=1.8.2
url="http://downloads.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.tar.bz2"
file_size=45952657
file_md5=a2dc343f7bc7f83f8941e47ed4a18200
recipe_type=makefile

# Sadly, Boost 1.45 no longer provides a configure script, so we need to
# resort to a very procedural recipe using Boost's completely nonstandard
# build system.

do_configuration() {
   ./bootstrap.sh --prefix=$target
}

do_build() {
   ./bjam variant=release threading=multi stage
}

do_install() {
   $sudo_exec ./bjam install

   # Manually install docs
   $sudo_exec mkdir -p $target/doc
   $sudo_exec cp -R doc/html $target/doc

   # Install bjam for use by e.g. BGL-Python
   $sudo_exec cp bjam $target/bin
}
