Skip to content

Commit

Permalink
Merge pull request #4939
Browse files Browse the repository at this point in the history
d547ebf Remove mention of MacPorts from OSX build docs (Wladimir J. van der Laan)
  • Loading branch information
laanwj committed Sep 18, 2014
2 parents c14bfea + d547ebf commit 0db24bf
Showing 1 changed file with 3 additions and 45 deletions.
48 changes: 3 additions & 45 deletions doc/build-osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,44 +26,14 @@ There's also an assumption that you already have `git` installed. If
not, it's the path of least resistance to install [Github for Mac](https://mac.github.com/)
(OS X 10.7+) or
[Git for OS X](https://code.google.com/p/git-osx-installer/). It is also
available via Homebrew or MacPorts.
available via Homebrew.

You will also need to install [Homebrew](http://brew.sh)
or [MacPorts](https://www.macports.org/) in order to install library
dependencies. It's largely a religious decision which to choose, however, Homebrew
is now used for building release versions.
You will also need to install [Homebrew](http://brew.sh) in order to install library
dependencies.

The installation of the actual dependencies is covered in the Instructions
sections below.

Instructions: MacPorts
----------------------

### Install dependencies

sudo port install boost db48@+no_java openssl miniupnpc autoconf pkgconfig automake libtool

Optional: install Qt4

sudo port install qt4-mac qrencode protobuf-cpp

### Building `bitcoind`

1. Clone the github tree to get the source code and go into the directory.

git clone [email protected]:bitcoin/bitcoin.git bitcoin
cd bitcoin

2. Build bitcoind (and Bitcoin-Qt, if configured):

./autogen.sh
./configure
make

3. It is a good idea to build and run the unit tests, too:

make check

Instructions: Homebrew
----------------------

Expand Down Expand Up @@ -126,18 +96,6 @@ All dependencies should be compiled with these flags:
-arch x86_64
-isysroot $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk

For MacPorts, that means editing your macports.conf and setting
`macosx_deployment_target` and `build_arch`:

macosx_deployment_target=10.6
build_arch=x86_64

... and then uninstalling and re-installing, or simply rebuilding, all ports.

As of December 2012, the `boost` port does not obey `macosx_deployment_target`.
Download `https://gavinandresen-bitcoin.s3.amazonaws.com/boost_macports_fix.zip`
for a fix.

Once dependencies are compiled, see release-process.md for how the Bitcoin-Qt.app
bundle is packaged and signed to create the .dmg disk image that is distributed.

Expand Down

0 comments on commit 0db24bf

Please sign in to comment.