macOS Mojave で emacs ビルド

macOS Mojave で emacs ビルドしておいた。autoconf と texinfo が必要なので事前にイントールしてから emacs を make する。

curl -OR http://ftp.jaist.ac.jp/pub/GNU/autoconf/autoconf-2.69.tar.gz
tar zxf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure
make
sudo make install
curl -OR http://ftp.jaist.ac.jp/pub/GNU/texinfo/texinfo-6.5.tar.gz
tar zxf texinfo-6.5.tar.gz
cd texinfo-6.5
./configure
make
sudo make install
git clone git://git.sv.gnu.org/emacs.git
cd emacs
./autogen.sh
./configure --with-ns --without-x --with-gnutls=no
make
make install

nextstep/Emacs.app をアプリケーションフォルダにコピー。ddskk も入れておく

cd ddskk
make clean
git pull
setenv SKK_LISPDIR /Applications/Emacs.app/Contents/Resources/site-lisp/skk
setenv SKK_INFODIR /Applications/Emacs.app/Contents/Resources/info
setenv SKK_DATADIR /Applications/Emacs.app/Contents/Resources/share/skk
sudo make EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs prefix=/Applications/Emacs.app/Contents/Resources install