Fix bug #5: Cannot install on a Mac
authorali <ali@juiblex.co.uk>
Sat Sep 21 19:31:02 2013 +0100 (2013-09-21)
changeset 952c71b6dc8b26
parent 94 3f655b1b0d93
parent 93 3170a7cd7858
child 96 aff051e0e4cf
Fix bug #5: Cannot install on a Mac
     1.1 --- a/README	Sat Sep 21 18:28:40 2013 +0100
     1.2 +++ b/README	Sat Sep 21 19:31:02 2013 +0100
     1.3 @@ -55,11 +55,31 @@
     1.4  Mac
     1.5  ---
     1.6  
     1.7 -The least intrusive means to build on a Mac is to use Homebrew:
     1.8 +You will need the command line tools for any of the procedures described
     1.9 +below. If you don't already have them, install Xcode (it's a free download).
    1.10 +
    1.11 +The least intrusive means to build on a Mac is to use Homebrew. However,
    1.12 +Homebrew is not compatible with Fink so if you have previously used Fink
    1.13 +then you need an alternative solution, such as MacPorts (see below).
    1.14 +
    1.15 +It may also be possible to use Fink itself.
    1.16 +
    1.17 +Mac using Homebrew
    1.18 +------------------
    1.19  
    1.20  http://mxcl.github.com/homebrew/
    1.21  
    1.22 -Install Homebrew according to its instructions.
    1.23 +Install Homebrew according to its instructions. If you already had Homebrew
    1.24 +before, make sure it's all up to date and “raring to brew.” For that, you
    1.25 +want to run:
    1.26 +
    1.27 +$ brew update
    1.28 +
    1.29 +and
    1.30 +
    1.31 +$ brew doctor
    1.32 +
    1.33 +from your terminal.
    1.34  
    1.35  If you are building bookloupe for your own use, you can use dynamic linking
    1.36  like this:
    1.37 @@ -107,4 +127,19 @@
    1.38  when it is asked to prefer static libraries to dynamic ones.) Removing the
    1.39  dynamic libraries first will solve this problem.
    1.40  
    1.41 -It may also be possible to use fink or macports.
    1.42 +Mac using MacPorts
    1.43 +------------------
    1.44 +
    1.45 +Install MacPorts from http://www.macports.org/.
    1.46 +
    1.47 +Install pkgconfig (required to build glib) and then glib itself:
    1.48 +
    1.49 +$ sudo port install pkgconfig
    1.50 +$ sudo port install glib2
    1.51 +
    1.52 +Then install bookloupe as normal, telling configure where to find glib's
    1.53 +package configuration file:
    1.54 +
    1.55 +$ ./configure PKG_CONFIG_PATH=/opt/local/lib/pkgconfig
    1.56 +$ make
    1.57 +$ make install