## Compiling and Installing Scribus 1.6+ on Mac OS X

This document outlines the build process for Scribus 1.4 or higher from SVN on Mac OS X. This does not currently outline the process for packaging and bundling Scribus (yet).

### What you need:

- MacPorts installer
- Qt 5.14.x or higher from Qt
- XCode from Apple, downloaded from http://www.apple.com
- Scribus SVN

### Building and Installing

Steps to build and install Scribus 1.6 on mac OS

- Install XCode (available from the app store or from the Apple developer site)
- Install MacPorts (downloadable from www.macports.org)
- Install Qt 5.14.0+ for mac OS (downloadable from www.qt.io/ or via MacPorts)

Install a few ports from MacPorts. Any other required dependencies will be installed automatically if they are not already. If you have already installed MacPorts for other software, then you should run `sudo port selfupdate` and `sudo port upgrade installed` in order that the newest versions of your current ports and libraries are installed.

- Install CMake (`sudo port install cmake` )
- Install freetype2 (`sudo port install freetype`) The one included with OS X is not as good as the one available from MacPorts.
- Install lcms (`sudo port install lcms`). This will also install libjpeg, zlib, and libtiff.
- Install Cairo (`sudo port install cairo`). This will install fontconfig too.
- Install libxml2 (`sudo port install libxml2`).
- Install Subversion (`sudo port install subversion`) OR optionally install subversion from another source.
- Install hunspell and requested dictionaries, eg hunspell-en
- Install harfbuzz-icu
- Install libcdr-0.1
- Install libetonyek
- Install libfreehand
- Install libjxl
- Install libmspub
- Install libpagemaker
- Install libqxp
- Install libvisio-0.1
- Install libzmf
- Install podofo
- Install poppler
- Optionally (recommended) `sudo port install ghostscript`
- Make a directory where you want to download to (eg, in Terminal, `mkdir -p ~/scribus/16`)
- Change to this directory (`cd ~/scribus/16`)

Check out Scribus from SVN

- `svn co svn://scribus.info/Scribus/branches/Version16x`
- Make a build directory `mkdir builddir`
- Change to the build directory (`cd builddir`)
- Run the cmake command: `cmake -DBUILD_OSX_BUNDLE=1 -DWANT_CAIRO=1 -DCMAKE_INSTALL_PREFIX:PATH=/Users/username/Applications/Scribus.app/Contents/ ../trunk/Scribus/`
- `make`
- `make install`

Now you can run Scribus 1.4 on OS X if all has gone well.