Building Psi Messenger on Mac OS X

* use IconComposer to make Psi.icns from image/icon_mac.png
* setenv QMAKESPEC macx-pbuilder
* cd src; qmake psi.pro; make. Repeat make if it fails.
* double-click src/psi.pbproj to open ProjectBuilder
* Customize the project (running make again in Terminal will destroy this)
  * Drag these folders into the Groups & Files pane: image, iconsets, sounds;
    ensure that they are checked
  * Drag these files into a new Resources group in the Groups & Files pane:
    Psi.icns, COPYING, README, contents of sounds folder
  * Create a text named InfoPlist.strings with the content between '---'
    markers:

    ---
    /* Localized versions of Info.plist keys */

    CFBundleName = "Psi";
    CFBundleShortVersionString = "Psi version xxxx";
    CFBundleGetInfoString = "Psi version xxxx by Justin Karneges. This program
      is licensed under the GNU GPL.";
    ---

  * Add InfoPlist.strings to the Resources group.
  * Remove qt-mt from the External Frameworks group; add Carbon.framework and
    QuickTime.framework {This step could be eliminated by modifying psi.pro}
  * In Targets pane, Build Settings, change Linker Settings, Other Linker
    Flags to $(QTDIR)/lib/libqt-mt.a -lz
  * In Targets pane, Application Settings,
    * Set Identifier to org.tenpura.orbit.justin.psi
    * Set Signature to 'psi ' (without quotes.  note the space.)
    * Set Version to xxxx
    * Set Display name to 'Psi Messenger'
    * Set Get-Info string to 'Psi Messenger xxxx by Justin Karneges. This
      program is licensed under the GNU GPL.'
    * Set Short version to 'Psi Messenger xxxx'
    * Set Icon File to Psi

  * In Targets pane, Files & Build Phases, add Bundle Resources phase after
    Qt Preprocessors phase (should contain items in Resources group)

* Build
* strip src/psi.app/Contents/MacOS/psi (reduces size of executable by factor
  of 9.5)
* cd src; tar cf psi.tar psi.app; gzip psi.tar => psi.tar.gz

