#
# Coin binary packaging for Mac OS X checklist
#

Prerequisites: 
- simage and freetype-2.1.7 sources 
- an official Coin-$(VERSION).tar.gz

(1) create working directory (personally, I use "Coin-x.y.z")

  mkdir Coin-$(VERSION)
  cd Coin-$(VERSION)

(2) Copy and extract Coin sources

  cp /path/to/Coin-$(VERSION).tar.gz .
  tar xzf Coin-$(VERSION).tar.gz

(3) Prepare support libraries

  >> If you already have libsimage and libfreetype:

  mkdir -p macosx/supportlibs/lib/
  cp /path/to/lib/libsimage* /path/to/lib/libfreetype* macosx/supportlibs/lib/

  >> else build simage and freetype

  mkdir simage-build
  cd simage-build
  /path/to/src/simage/configure --prefix=$PWD/..macosx/supportlibs/install --enable-quicktime --enable-optimization --disable-debug --disable-symbols --without-oggvorbis --without-libsndfile --libdir=$PWD/../macosx/supportlibs/lib
  make install
  cd ..

  mkdir freetype-config
  cd freetype-config
  /path/to/src/freetype-2.1.7/configure --prefix=$PWD/../macosx/supportlibs/install --disable-static --libdir=$PWD/../macosx/supportlibs/lib
  make install
  cd ..

(4) Universal Binary Support

  If you want to build Universal Binaries, add --enable-universal
  to the BUILDOPTIONS in Coin-$(VERSION)/packaging/macosx/Makefile.in

(5) Choose the compiler version

  Use gcc_select to choose gcc-4.0 (Mac OS 10.4 "Tiger" only) or
  gcc-3.3 (backwards compatible). Note that UB support requires gcc-4.

(6) Build & package Coin

  MACOSX_DEPLOYMENT_TARGET=10.2 ./Coin-$(VERSION)/configure
  MACOSX_DEPLOYMENT_TARGET=10.2 make macosx-packages

  Note: Do not manually unmount the volume after setting the
  background image, it will be automatically unmounted!

---

You should now have the following:

Coin-$(VERSION)-no_inst.dmg
Coin-$(VERSION).dmg
coin.info
