Mac OS X, Snow Leopard (or later)
Section contributed by Julio M. Merino Vidal
/usr/local
hierarchy. If you do not want this, you can choose any other prefix such
as ~/Applications for a single-user installation.
Snow Leopard comes with
xsltproc and all related libraries
preinstalled, so you do not need to take any extra steps to set them up.
It is probable that future versions will include them too, but these instructions
may not apply to older versions.
To get started:
-
Download Docbook
XML 4.2 and unpack it inside
/usr/local/share/xml/docbook/4.2. -
Download the latest Docbook
XSL version and unpack it. Be careful that you download the
correct file, sometimes the 'looking for the latest version' link often
links to another file. The name should be of the form
docbook-xsl-1.nn.n.tar.bz2, with no suffix such as-ns.tar.bz2or-doc.tar.bz2. Put the results in/usr/local/share/xsl/docbook, thus effectively removing the version number from the directory name (for simplicity). -
Add the following to your
user-config.jamfile, which should live in your home directory (/Users/<your_username>). You must already have it somewhere or otherwise you could not be building Boost (i.e. missing tools configuration).using xsltproc ; using boostbook : "/usr/local/share/xsl/docbook" : "/usr/local/share/xml/docbook/4.2" ;
-
Go to Quickbook's source directory (
BOOST_ROOT/tools/quickbook). -
Build the utility by issuing
bjam. -
Copy the resulting
quickbookbinary (located atBOOST_ROOT/dist/bin) to a safe place. Following our previous example, you can install it into:/usr/local/bin. -
Add the following to your
user-config.jamfile:using quickbook : "/usr/local/bin/quickbook" ; ;
-
Go to the downloads
section and get the disk image (
dmgfile) for Mac OS X. -
Open the disk image and drag the Doxygen application to your
Applicationsfolder to install it. -
Add the following to your
user-config.jamfile:using doxygen : /Applications/Doxygen.app/Contents/Resources/doxygen ;
No comments:
Post a Comment