To compile for bitcoind on Mac OS X, just follow instruction here:
https://github.com/gavinandresen/bitcoin-git/blob/master/doc/build-osx.md
Add on note:
I tested homebrew berkeley-db4 is no more working, using berkeley-db will install version 5 which doesn’t work with the bitcoin at the moment, so try out this command.
brew install https://raw.github.com/mxcl/homebrew/master/Library/Formula/berkeley-db4.rb –without-java
