Gajim on Mac OSX

It is possible to run Gajim on OS X using native Gtk, however, this is a work in progress and needs some work to be installed.

Installation

First, you need Mac OS X Leopard. Then you need to get MacPorts? and install them. Refer to the MacPorts? homepage on how to do that. When you installed MacPorts?, open a terminal and type the following lines:

sudo port -v install freetype +bytecode
sudo port -v install fontconfig
sudo port -v install cairo +no_x11+quartz
sudo port -v install pango +no_x11+quartz
sudo port -v install mercurial xmlcatmgr

If you live in the US, you should not specify +bytecode due to patent reasons, but the fonts might look a bit blurry then (I'm not sure if it's affecting native Gtk as well, but it sure affected X11 Gtk a lot - never tried native Gtk without it).

After that, it gets a bit tricky. In order to have the key bindings similar to those of Cocoa applications, you need to apply a patch, which is in the osx_newbuildsys branch. Therefore, check out the branch:

hg clo http://hg.gajim.org/gajim
cd gajim
hg up osx_newbuildsys

To apply that patch, start the installation of gtk2 using:

sudo port -v install gtk2 +no_x11+quartz

Pause it by pressing Ctrl-Z when it's running Gtk's configure script. Now you cd to the build dir MacPorts? created (for example “cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/work/gtk+-2.14.7”) and apply the gdk-quartz-keychange.diff patch from the osx_newbuildsys branch. After applying it, type fg to continue the build of gtk2.

After gtk2, you need to install python 2.5 and a few python modules. Do so by typing:

sudo port -v install py25-numpy +no_atlas+no_gcc43
sudo port -v install py25-gtk py25-sqlite3 py25-openssl py25-pyobjc2 py25-pyobjc2-cocoa py25-crypto automake hicolor-icon-theme

Now, you should have all dependencies for Gajim. So let's compile Gajim's modules and test it:

cd gajim
./autogen.sh
make
./launch.sh

Now Gajim should start and you should be able to use it :).

And finally, here's a screenshot: http://www.hostpix.de/090708/w36c7gIb.png