Compilation is fine up until Qt. Which fails with,
Fetching qt...
Extracting qt...
/bitcoin/depends/sources/qt-everywhere-opensource-src-5.2.1.tar.gz: OK
Preprocessing qt...
patching file qtbase/src/plugins/platforms/xcb/xcb-plugin.pro
patching file qtbase/src/widgets/kernel/qwidgetwindow.cpp
Configuring qt...
grep: \c: No such file or directory
grep: ^# *define *QT_VERSION_STR: No such file or directory
Cannot process version from qglobal.h:
Cannot proceed.
make: *** [/bitcoin/depends/work/build/x86_64-apple-darwin13.4.0/qt/5.2.1-8b85bf74239/qtbase/.stamp_configured] Error 1