Sunday, June 12, 2005

carbon xemacs on mac os x

The version of Carbon Emacs I have lets me select text and paste it into other windows, but doesn't let me paste stuff into it. Very annoying. I also prefer XEmacs, and it's a good thing someone has a patch for building a Carbon XEmacs. Here's how I built it:
  • using the instructions on this page, build zlib, libpng, and libjpeg. they'll install into /usr/local.
  • grab xemacs-21.5.20.tar.gz, and the sumo/mule-sumo packages from the distribution site
  • grab the carbon patch from its site
  • do tar xzf xemacs-21.5.20.tar.gz bzip2 -dc xemacs-21.5.20-carbon-b2.diff.bz2 | patch -p1 cd xemacs-21.5.20/carbon
  • edit build-app.sh and change the configure line to ./configure --with-carbon --with-mule --without-ldap --prefix=${carbondir}/XEmacs.app/Contents/Resources --error-checking=none --site-libraries=/usr/lib:/usr/local/lib --site-includes=/usr/include:/usr/local/include --with-png --with-jpeg
  • execute build-app.sh
  • cd into XEmacs.app/Contents/Resources/lib/xemacs and unpack the sumo packages here.
  • copy XEmacs.app into your /Applications directory.

No comments: