1. goto misc/allegro-iphone, create install directories
  $ cd misc/allegro-iphone
  $ mkdir -p install/sim
  $ mkdir -p install/phone
  
2. get freetype and build for the simulator and phone
  $ mkdir tmp
  $ wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.6.tar.bz2
  $ tar -xf freetype-2.4.6.tar.bz2
  $ cd freetype-2.4.6
  # build for the simulator
  $ misc/allegro-iphone/build-freetype.sh sim /path/to/paintown
  # build for the phone
  $ misc/allegro-iphone/build-freetype.sh phone /path/to/paintown

3. allegro 5.1 from svn
  misc/allegro-iphone $ svn co https://alleg.svn.sourceforge.net/svnroot/alleg/allegro/branches/5.1 allegro
  $ scons

4. build paintown for the iphone simulator and phone
  paintown $ scons -f scons/iphone.py

5. get ios-sim to run in the simulator (https://github.com/Fingertips/ios-sim)
  $ git clone https://github.com/Fingertips/ios-sim.git
  $ cd ios-sim
  $ rake install prefix=/usr/local
  # If rake doesn't work just run xcodebuild directly:
    $ xcodebuild -project ios-sim.xcodeproj -configuration Release SYMROOT=build

6. create a .app directory and run it in the simulator
  $ mkdir paintown.app
  $ cp build-allegro5-iphone-phone/paintown paintown.app
  $ cp -a data paintown.app
  $ cp misc/iphone/* paintown.app
  $ ios-sim launch `pwd`/paintown.app --env paintown.app/Info.plist --stdout sim-out.txt --stderr sim-err.txt

7. run paintown on a real ios device
  * TODO

* Note that if you make changes to the paintown source and rebuild you must copy build-allegro5-iphone/paintown into paintown.app/ again. It won't work with symlinks.
