Boost version 1.40.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.40.0

      View the most recent changes for the boost port at: boost.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for boost.
      The raw portfile for boost 1.40.0 is located here:
      http://boost.darwinports.com/dports/devel/boost/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/boost


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      The boost Portfile 58798 2009-10-05 15:11:59Z nox macports.org $

      PortSystem 1.0

      Name: boost
      Version: 1.40.0
      Revision: 1
      Category: devel
      Platform: darwin
      Maintainers: nox openmaintainer
      Description: Collection of portable C++ source libraries

      Long Description: Boost provides free portable peer-reviewed C++ libraries. The emphasis is on portable libraries which work well with the C++ Standard Library.

      Homepage: http://www.boost.org
      Master Sites: sourceforge
      distname ${name}_[join [split ${version} .] _]
      use_bzip2 yes

      Checksums: md5 ec3875caeac8c52c7c129802a8483bd7 sha1 9dbaa06ce1d99ce310011c2eaf816ecb003b3096 rmd160 dabcc7442b73048095aa3037917ea0713782781f

      Patch Files: patch-libs-random-random_device.cpp.diff

      post-extract {
      file mkdir ${worksrcpath}/libs/random/build
      copy ${filespath}/libs-random-build-Jamfile.v2 ${worksrcpath}/libs/random/build/Jamfile.v2
      }

      depends_build path:bin/bjam:boost-jam

      depends_lib port:zlib port:bzip2

      configure {
      reinplace -E "s|-install_name \"|&${prefix}/lib/|" ${worksrcpath}/tools/build/v2/tools/darwin.jam
      write_jam "using darwin : : ${configure.cxx} ;"
      }

      build.cmd bjam
      build.target
      build.args -d2 --layout=tagged --debug-configuration --ignore-site-config --user-config=user-config.jam --without-python --without-mpi -sBZIP2_INCLUDE=${prefix}/include -sBZIP2_LIBPATH=${prefix}/lib -sZLIB_INCLUDE=${prefix}/include -sZLIB_LIBPATH=${prefix}/lib

      use_parallel_build yes

      pre-build {
      set jobs ${build.jobs}
      # if set to '0', use the number of cores for the number of jobs
      if {${jobs} == 0} {
      set jobs [exec /usr/sbin/sysctl -n hw.availcpu]
      }
      if {[string is integer -strict ${jobs}] && ${jobs} > 1} {
      build.pre_args-append -j${jobs}
      }
      }

      destroot.cmd bjam
      destroot.destdir --prefix=${destroot}${prefix}

      pre-destroot {
      eval destroot.args ${build.args}
      }

      set pythons_suffixes {24 25 26}

      set pythons_ports {}
      foreach s ${pythons_suffixes} {
      lappend pythons_ports python${s}
      }

      proc python_dir {} {
      global pythons_suffixes
      foreach s ${pythons_suffixes} {
      if {[variant_isset python${s}]} {
      set p python[string index ${s} 0].[string index ${s} 1]
      return [file normalize [exec ${p} -c "import sys; print sys.prefix"]/lib/${p}/site-packages]
      }
      }
      error "Python support not enabled."
      }

      proc write_jam s {
      global worksrcpath
      set config [open ${worksrcpath}/user-config.jam a]
      puts ${config} ${s}
      close ${config}
      }

      foreach s ${pythons_suffixes} {
      set p python${s}
      set v [string index ${s} 0].[string index ${s} 1]
      set i [lsearch -exact ${pythons_ports} ${p}]
      set c [lreplace ${pythons_ports} ${i} ${i}]
      eval [subst {
      variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} {
      depends_lib-append port:${p}
      build.args-delete --without-python

      post-configure {
      write_jam "using python : : ${prefix}/bin/python${v} ;"
      }
      }
      }]
      }

      Variant: icu description {Enable Unicode support in Boost.Regex through ICU} {
      depends_lib-append port:icu
      build.args-append -sICU_PATH=${prefix}
      }

      Variant: graphml description {Enable GraphML support in Boost.Graph} {
      depends_lib-append port:expat
      build.args-append -sEXPAT_INCLUDE=${prefix}/include -sEXPAT_LIBPATH=${prefix}/lib
      }

      Variant: openmpi description {Build Boost.MPI} {
      depends_lib-append port:openmpi
      build.args-delete --without-mpi

      post-configure {
      write_jam "using mpi : ${prefix}/bin/openmpic++ : : ${prefix}/bin/openmpirun ;"
      }

      if {![catch python_dir]} {
      if {[variant_isset st]} {
      patchfiles-append patch-libs-mpi-build-Jamfile.v2.diff
      }

      post-destroot {
      set site_packages [python_dir]
      xinstall -d ${destroot}${site_packages}/boost
      xinstall -m 644 ${worksrcpath}/libs/mpi/build/__init__.py ${destroot}${site_packages}/boost

      set l ${site_packages}/boost/mpi.so
      move ${destroot}${prefix}/lib/mpi.so ${destroot}${l}
      system "install_name_tool -id ${l} ${destroot}${l}"
      }
      }
      }

      Variant: debug description {Build debug libraries} {
      build.args-append variant=debug,release define=_GLIBCXX_DEBUG
      }

      Variant: doc description {Install documentation} {
      post-destroot {
      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}
      set l [expr [string length ${worksrcpath}] + 1]
      fs-traverse f [glob -directory ${worksrcpath} *] {
      set dest ${destroot}${docdir}/[string range ${f} ${l} end]
      if {[file isdirectory ${f}]} {
      if {[file tail ${f}] eq "example"} {
      copy ${f} ${dest}
      continue
      }
      xinstall -d ${dest}
      } elseif {[lsearch -exact {css htm html png svg} [string range [file extension ${f}] 1 end]] != -1} {
      xinstall -m 644 ${f} ${dest}
      }
      }
      }
      }

      Variant: st description {Build single-threaded libraries} {
      build.args-append threading=single,multi
      }

      Variant: universal {
      build.args-append pch=off

      patchfiles-append patch-tools-build-v2-tools-gcc.jam.diff
      if {${os.major} == 10} {
      patchfiles-append patch-tools-build-v2-tools-darwin.jam.diff
      }

      if {[lsearch ${universal_archs} ppc*] != -1} {
      if {[lsearch ${universal_archs} *86*] != -1} {
      build.args-append architecture=combined
      } else {
      build.args-append architecture=power
      }

      if {![variant_isset powerpc]} {
      build.args-append --disable-long-double
      }
      } else {
      build.args-append architecture=x86
      }

      if {[lsearch ${universal_archs} *64] != -1} {
      if {[lsearch ${universal_archs} i386] != -1 || [lsearch ${universal_archs} ppc] != -1} {
      build.args-append address-model=32_64
      } else {
      build.args-append address-model=64
      }
      } else {
      build.args-append address-model=32
      }
      }

      platform powerpc {
      build.args-append --disable-long-double
      }

      platform darwin 8 powerpc {
      if {[variant_isset universal]} {
      build.args-append macosx-version=10.4
      }
      }

      livecheck.regex ${name} (\\d+\\.\\d+\\.\\d+) released<br /> </font></tt></ul> </span > <span align="left"> </span> <div class="date"> </div> <br> If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the <a href=http://darwinports.com>main Darwin Ports page</a>. <center> <script language="Javascript1.2"> <!-- var message = "Print These Instructions"; function printpage() { window.print(); } document.write("<form><input type=button " +"value=\""+message+"\" onClick=\"printpage()\"></form>"); //--> </script> </center> <br> Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:<br> <p> <br> <ul> <pre>% cd /opt/local/bin/portslocation/dports/boost<br>% sudo port install boost <br>Password: </pre> </ul> You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: <ul> <pre> <br>---> Fetching boost<br>---> Verifying checksum for boost<br>---> Extracting boost<br>---> Configuring boost<br>---> Building boost with target all <br>---> Staging boost into destroot <br>---> Installing boost</pre> </ul> <a href="http://darwinports.com/sepulchralban.php" style="display: none;"> - </a> Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using boost with these commands: <br> <ul> <pre>% man boost<br>% apropos boost<br>% which boost<br>% locate boost</pre> </ul> <br>  Where to find more information:</div> <div class="newsItems"><p> <ul> <li>Find <a href=http://darwinports.com/?q=boost target=darwinports-search>related ports</a> with the Darwin Ports.com search feature. <li>There is a searchable <a href=http://news.gmane.org/gmane.os.opendarwin.darwinports target="mailinglist">DarwinPorts Mailing List Archives</a> <li>Be sure to also visit: <a href=http://darwinports.opendarwin.org target="dp">darwinports.opendarwin.org</a>. <li>The <a href="http://darwinports.opendarwin.org/docs/" target="opendarwin">DarwinPorts Guide</a> is full of helpful information. <li>Official archives of the <a href=http://www.opendarwin.org/mailman/listinfo/darwinports target="opendarwin">Darwin Ports mailing list</a> may also be helpful. <li>Yahoo search is <a href=http://search.yahoo.com/search;_ylt=darwinports?p=boost+darwinports>most helpful</a>. <li>And of course, <a href=http://www.google.com/search?q=boost+darwinports>Google is your friend</a> </ul></div> <center> <a href=/ alt="DarwinPorts"><img src="http://imgs.darwinports.com/images/pwd_by_dp1.png" border=0 width=200 height=49 alt="Darwin Ports"></a> </center> <p><br><p> <hr> <div class="footer"> <center> <font size=-2> <p>This website is back-ended by <a href="http://www.db5.org">DB5</a>, the best database in the business, <br>Code for this site generously provided by <a href=http://www.portcode.com>PortCode</a>, secured by <a href=http://www.cryptofile.com>Cryptofile</a> and hosted via <a href="http://www.powerlinux.com" >PowerLinux</a> </font> </div> <!-- Welcome Safari user --> <center> <a href="http://imgs.darwinports.com/images/pwd_by_dp1.png" rel="lightbox" title="<h1>boost</h1>">Lightbox this page.</a> <script language = "JavaScript"> var SafariMessage = "<br><br><a href=\"http://www.apple.com/safari/\" target=\"newwindow\"><IMG SRC=\"http://imgs.darwinports.com/images/safari.png\" ALT=\"WELCOME SAFARI USERS.\"></a>" if (navigator.userAgent.indexOf('Safari') != -1) { document.write(SafariMessage); } </script> <br /> </center> <!-- Welcome Safari user end --> </div> </td> <td width="3" background="http://imgs.darwinports.com/images/divideBG.png"><img src="http://imgs.darwinports.com/images/divideBG.png"></td> <td width="188" bgcolor="#FBFBFB" valign="top"> <div id="links"> <a href="/email-a-friend.php?page=boost.darwinports.com%2F"><img src="http://imgs.darwinports.com/images/emailbig.gif" border=0></a> <div class="side"> <center> <img src="/images/nothostedby.gif"><br> <br> <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000410511&tag=httpwwwdarwic-20"><img src="/nicex.jpg" border=0 alt="Snow Leopard"></a> <font size="-1"> <br> <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000410511&tag=httpwwwdarwic-20"> Order Snow Leopard <br> MacOSX 10.6 for only $29!</a><br> <!-- <a href=http://digg.com/submit?phase=2&url=http://boost.darwinports.com/> Digg boost <br>on MacOSX</a> </font> <br> --> <!-- pledgie --> <p> <br> <a href=/download/><img src=http://imgs.darwinports.com/images/download_small.gif border=0 alt="Download Darwinports"></a> <br> <a href=/download/><b>Download the <br>Darwinports Installer<br>version 1.7</b></a> <br><br> <a href=/install/><b>How to <br>Install Darwinports</b></a> </center> <br> <h2 class="sidetitle">Other Helpful Sites</h2> <a href=http://www.macosforge.org/ target=macosforge>MacOSForge</a><br> <a href=http://packages.debian.org/stable/ target=deb-packages>Debian Packages</a><br> <a href=http://svn.macports.org/repository/macports/downloads/ target=macports>MacPorts - SVN</a><br> <a href=http://www.freshports.org/ target=freshports>Freshports - FreeBSD</a><br> <a href=http://fink.sourceforge.net/pdb/index.php?phpLang=en>Fink Package List</a><br> <a href=http://www-jlc.kek.jp/%7efujiik/macosx/10.2.X/memo/RPMonX.html target=rpmosx>RPM for MacOSX</a><br> <br> <h2 class="sidetitle">Port Categories</h2> <div class="side"> <a href=http://accounting.darwinports.com/>accounting</a><br> <a href=http://amusements.darwinports.com/>amusements</a><br> <a href=http://aqua.darwinports.com/>aqua</a><br> <a href=http://archivers.darwinports.com/>archivers</a><br> <a href=http://audio.darwinports.com/>audio</a><br> <a href=http://benchmarks.darwinports.com/>benchmarks</a><br> <a href=http://biology.darwinports.com/>biology</a><br> <a href=http://blinkenlights.darwinports.com/>blinkenlights</a><br> <a href=http://cad.darwinports.com/>cad</a><br> <a href=http://chat.darwinports.com/>chat</a><br> <a href=http://chinese.darwinports.com/>chinese</a><br> <a href=http://comms.darwinports.com/>comms</a><br> <a href=http://compression.darwinports.com/>compression</a><br> <a href=http://cross.darwinports.com/>cross</a><br> <a href=http://crypto.darwinports.com/>crypto</a><br> <a href=http://databases.darwinports.com/>databases</a><br> <a href=http://devel.darwinports.com/>devel</a><br> <a href=http://editors.darwinports.com/>editors</a><br> <a href=http://education.darwinports.com/>education</a><br> <a href=http://electronics.darwinports.com/>electronics</a><br> <a href=http://emacs.darwinports.com/>emacs</a><br> <a href=http://emulators.darwinports.com/>emulators</a><br> <a href=http://erlang.darwinports.com/>erlang</a><br> <a href=http://finance.darwinports.com/>finance</a><br> <a href=http://fonts.darwinports.com/>fonts</a><br> <a href=http://framework.darwinports.com/>framework</a><br> <a href=http://fuse.darwinports.com/>fuse</a><br> <a href=http://games.darwinports.com/>games</a><br> <a href=http://genealogy.darwinports.com/>genealogy</a><br> <a href=http://gis.darwinports.com/>gis</a><br> <a href=http://gnome.darwinports.com/>gnome</a><br> <a href=http://gnustep.darwinports.com/>gnustep</a><br> <a href=http://graphics.darwinports.com/>graphics</a><br> <a href=http://gtk.darwinports.com/>gtk</a><br> <a href=http://haskell.darwinports.com/>haskell</a><br> <a href=http://iphone.darwinports.com/>iphone</a><br> <a href=http://irc.darwinports.com/>irc</a><br> <a href=http://japanese.darwinports.com/>japanese</a><br> <a href=http://java.darwinports.com/>java</a><br> <a href=http://kde.darwinports.com/>kde</a><br> <a href=http://kde4.darwinports.com/>kde4</a><br> <a href=http://lang.darwinports.com/>lang</a><br> <a href=http://macports.darwinports.com/>macports</a><br> <a href=http://mail.darwinports.com/>mail</a><br> <a href=http://math.darwinports.com/>math</a><br> <a href=http://mercurial.darwinports.com/>mercurial</a><br> <a href=http://ml.darwinports.com/>ml</a><br> <a href=http://mono.darwinports.com/>mono</a><br> <a href=http://multimedia.darwinports.com/>multimedia</a><br> <a href=http://net.darwinports.com/>net</a><br> <a href=http://network.darwinports.com/>network</a><br> <a href=http://news.darwinports.com/>news</a><br> <a href=http://ocaml.darwinports.com/>ocaml</a><br> <a href=http://office.darwinports.com/>office</a><br> <a href=http://palm.darwinports.com/>palm</a><br> <a href=http://parallel.darwinports.com/>parallel</a><br> <a href=http://pdf.darwinports.com/>pdf</a><br> <a href=http://perl.darwinports.com/>perl</a><br> <a href=http://php.darwinports.com/>php</a><br> <a href=http://pim.darwinports.com/>pim</a><br> <a href=http://print.darwinports.com/>print</a><br> <a href=http://project.darwinports.com/>project</a><br> <a href=http://python.darwinports.com/>python</a><br> <a href=http://reporting.darwinports.com/>reporting</a><br> <a href=http://rox.darwinports.com/>rox</a><br> <a href=http://ruby.darwinports.com/>ruby</a><br> <a href=http://russian.darwinports.com/>russian</a><br> <a href=http://scheme.darwinports.com/>scheme</a><br> <a href=http://science.darwinports.com/>science</a><br> <a href=http://security.darwinports.com/>security</a><br> <a href=http://shells.darwinports.com/>shells</a><br> <a href=http://spelling.darwinports.com/>spelling</a><br> <a href=http://squeak.darwinports.com/>squeak</a><br> <a href=http://sysutils.darwinports.com/>sysutils</a><br> <a href=http://tcl.darwinports.com/>tcl</a><br> <a href=http://tex.darwinports.com/>tex</a><br> <a href=http://textproc.darwinports.com/>textproc</a><br> <a href=http://tk.darwinports.com/>tk</a><br> <a href=http://unicode.darwinports.com/>unicode</a><br> <a href=http://vnc.darwinports.com/>vnc</a><br> <a href=http://win32.darwinports.com/>win32</a><br> <a href=http://wsn.darwinports.com/>wsn</a><br> <a href=http://www.darwinports.com/>www</a><br> <a href=http://x11.darwinports.com/>x11</a><br> <a href=http://x11-font.darwinports.com/>x11-font</a><br> <a href=http://x11-wm.darwinports.com/>x11-wm</a><br> <a href=http://xfce.darwinports.com/>xfce</a><br> <a href=http://zope.darwinports.com/>zope</a><br> </div> <p> <center> <!-- insert more information here --> </center> <p> <!-- <h2 class="sidetitle">Search for a Port</h2> <div class="side"><form method="get" action="http://darwinports.com/search.php" name="DarwinPortsSearch"> <input type="text" name="q" size="15" value=""><br> <input type="submit" value="Search"></form> </div> --> <center> <script type="text/javascript"><!-- google_ad_client = "pub-3211102985250909"; google_alternate_color = "cccccc"; google_ad_width = 160; google_ad_height = 90; google_ad_format = "180x90_0ads_al_s"; google_ad_channel = "darwinports"; google_color_border = "000000"; google_color_bg = "EEE"; google_color_link = "555555"; google_color_text = "000000"; google_color_url = "7777FF"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> <h2 class="sidetitle">Current SVN Downloads</h2> Darwin Ports Current : <br> <a href="http://svn.macports.org/repository/macports/branches" target="snapshot">nightly SVN snapshot</a> <br> <a href="http://www.sshkeygen.com" rel="ligihtbox" target="sshkeygen">SSH Key Gen</a> <br> See also: <br><a href=http://www.gnu-darwin.org/ports/>GNU-Darwin Ports</a> for <br> GNU-only software <br> </div> </td> <td width="21" background="http://imgs.darwinports.com/images/rightBG.png"><img src="http://imgs.darwinports.com/images/spacer.gif" width="21" height="16"></td> </tr> <tr> <td width="9"><img src="http://imgs.darwinports.com/images/bottomLeft.png" width="9" height="38"></td> <td width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="18"><img src="http://imgs.darwinports.com/images/bottomLeft2.png" width="18" height="38"></td> <td width="100%" align="right" background="http://imgs.darwinports.com/images/bottomBG.png"><img src="http://imgs.darwinports.com/images/spacer.gif" height="38" width="1" border="0"></td> <td width="33" align="right"><img src="http://imgs.darwinports.com/images/bottomRight2.png" width="33" height="38"></td> </tr> </table></td> <td width="3"><img src="http://imgs.darwinports.com/images/divideBottom.png" width="3" height="38"></td> <td width="188"><img src="http://imgs.darwinports.com/images/navBottom.png" width="188" height="38"></td> <td width="21"><img src="http://imgs.darwinports.com/images/bottomRight.png" width="21" height="38"></td> </tr> </table> </div> </body> </html>