## Compiling and Installing Scribus 1.4+ 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 processs for packaging and bundling Scribus (yet).

### What you need:

- MacPorts installer (renamed from darwinports in versions since 1.5)
- Qt 4.4.x from Trolltech
- XCode from Apple, either from the OS X install DVD or downloaded from http://www.apple.com
- Scribus SVN

### Building and Installing

Steps to build and install Scribus 1.4 on OS X/Aqua

- Install X11 (available on the OS X CDs or from the Apple site)
- Install XCode (available on the OS X CDs or from the Apple developer site)
- Install MacPorts (downloadable from www.macports.org)
- Install Qt 4.4.0+ for OS X (downloadable from www.trolltech.com)

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 libaries 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.
- Optionally (recommended) `sudo port install ghostscript`
- Make a directory where you want to download to (eg, in Terminal, `mkdir -p ~/scribus/14`)
- Change to this directory (`cd ~/scribus/14`)

Check out Scribus from SVN

- `svn co svn://scribus.info/Scribus/branches/Version140`
- 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.