Emacs.app Intel Mac

From EggeWiki

I decided to try building emacs.app on my Intel MacBook Pro.

The first thing is to check out the emacs source:

$ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs

Next I download the two patch files from SourceForge.net. The patches aren't in CVS at this time.

$ tar xzf ~/downloads/emacs-23.0.0_NS-9.0pre3_patch_add.tgz
$ patch < ~/downloads/emacs-23.0.0_NS-9.0pre3.patch

The patch failed due to a missing file, but I noticed that emacs does have some options for building a 'carbon' based app.

I ran the makeconfigure script in the mac directory, but it failed because I don't have a 'movemail' library.

gcc -fpascal-strings -DMAC_OSX -I../mac/src -DHAVE_CONFIG_H -I. -I../src -I/src/emacs/mac/../lib-src -I/src/emacs/mac/../lib-src/../src  -g -O2 -Wno-pointer-sign   movemail.o pop.o getopt.o getopt1.o         -o movemail
i686-apple-darwin8-gcc-4.0.1: getopt.o: No such file or directory
i686-apple-darwin8-gcc-4.0.1: getopt1.o: No such file or directory
make[1]: *** [movemail] Error 1
make: *** [lib-src] Error 2
Make failed... Aborting make-package.

I found another port of emacs [Aquamacs http://aquamacs.org]. They have a Universal Binary available for download, and detailed build instructions.