Copyright (c) 2017-2019 42 Developers
Copyright (c) 2019 NovaCoin Developers

Mac OS X Build Instructions and Notes
=====================================

MacOS 10.11.6 - El Capitan was used in this manual. All of the commands should be executed in a Terminal application. The built-in one is located in /Applications/Utilities. 

1. Install Xcode (7.3.1 for El Capitan), run it and accept the license agreement:

https://developer.apple.com/xcode/

Install Xcode command line tools:

xcode-select --install

2. Install MacPorts with main dependencies:

https://distfiles.macports.org/MacPorts/MacPorts-2.3.5-10.11-ElCapitan.pkg

sudo port install autoconf automake libtool pkgconfig db60 openssl qrencode qt5

sudo ln -s /opt/local/libexec/qt5/bin/qmake /opt/local/bin/qmake

3. Install Homebrew(http://brew.sh) with dependencies:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install python2 boost@1.60

brew link --force boost@1.60

4. Add to PATH:

nano ~/.profile

export PATH=$PATH:~/opt/local/lib/db6.0
export PATH=$PATH:~/opt/local/lib/db60/include
export PATH=$PATH:~/usr/local/Cellar/boost@1.60/1.60.0/include/boost/thread.hpp

Ctrl+O, Enter, Ctrl+X

5. Clone the github tree:

git clone https://github.com/novacoin-project/novacoin.git

6. Build novacoin-Qt application:

cd novacoin
qmake
make

7. Create the .dmg disk image:

sudo easy_install appscript
./contrib/macdeploy/macdeployqtplus novacoin-Qt.app -dmg -fancy ./contrib/macdeploy/fancy.plist