This is an old revision of the document!
This guide was tested on clean installation of Mac OS X 10.10 Yosemite.
Everything is done from command line in terminal. When you don't have installed command line tools and compilers then Mac OS X will popup window and ask if you want to install them (they are free).
For PtokaX compile you need tinyxml (library used to read and write xml files) and Lua (programming language used for scripting).
They can be installed using package manager Homebrew.