From 7b1a797518a2be3150ecb5c379037abcf2f6703e Mon Sep 17 00:00:00 2001 From: Giuseppe 'ferdy' Miceli Date: Wed, 26 Feb 2014 17:21:13 +0100 Subject: [PATCH] Add alternate instructions for building on MacOSX using MacPorts This modifies the INSTALL file to offer MacPorts based instructions. Signed-off-by: Giuseppe 'ferdy' Miceli Signed-off-by: Dirk Hohndel --- INSTALL | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index be3c5ed01..c5e89c93a 100644 --- a/INSTALL +++ b/INSTALL @@ -80,8 +80,8 @@ $ sudo make install [optionally, add: prefix=/usr/local] Note: on Fedora qmake will appear as qmake-qt4 -Building the Qt version under MacOSX ------------------------------------- +Building the Qt version under MacOSX (using Homebrew) +----------------------------------------------------- 1) Install Homebrew @@ -148,6 +148,38 @@ The easiest workaround is to create a symbolic link from /usr/local/plugins to /usr/local/Cellar/qt/4.8.5/plugins (or whatever version of Qt you have built earlier). +Building the Qt version under MacOSX (using MacPorts) +----------------------------------------------------- + +1) Install MacPorts + +Please refer to http://www.macports.org/install.php + +2) Install needed dependencies + +$ sudo port -vp install asciidoc libzip libusb sqlite cmake qt4-mac marble libdivecomputer + +3) Check dependencies' versions + +$ port installed qt4-mac libdivecomputer marble libzip asciidoc libusb sqlite cmake +The following ports are currently installed: + asciidoc @8.6.9_1 (active) + cmake @2.8.12_3 (active) + libdivecomputer @0.4.1_0 (active) + libusb @1.0.18_0 (active) + libzip @0.11.1_0 (active) + marble @4.12.2_0 (active) + qt4-mac @4.8.5_1 (active) + +4) Compile Subsurface + +$ cd ~/src +$ git clone git://subsurface.hohndel.org/subsurface.git +$ cd subsurface +$ qmake +$ make +$ make install_mac_bundle + Cross-building Subsurface on Linux for Windows ----------------------------------------------