The macports version of emacs 22.1_1 (no x11, no carbon) is broken. I use it. Fortunately, Yamamoto Mitsuharu’s patch http://article.gmane.org/gmane.emacs.bugs/16867 allows it to build and install on Leopard x86. The bug tracker has Ticket #13942 for 1.6 and Ticket #13471 for 1.5.2 that have not been acknowledged by the maintainer.
Seems to work so I’ve slapped together a patch file and a portfile to use it until the fixes get incorporated: