Skip to content

Instantly share code, notes, and snippets.

@takaxp
Last active September 24, 2019 15:54
Show Gist options
  • Save takaxp/ea865ada4f71c716c417a0df28dfeb30 to your computer and use it in GitHub Desktop.
Save takaxp/ea865ada4f71c716c417a0df28dfeb30 to your computer and use it in GitHub Desktop.
Build script for Emacs 26.1 on Mojave (alpha) without IME patch (not work) (see also https://qiita.com/takaxp/items/e07bb286d80fa9dd8e05)
#!/bin/sh
cd ~/Desktop
mkdir emacs_ns
cd ~/Desktop/emacs_ns
#VERSION=26.0.91
VERSION=26.1
#POSTFIX=-rc1
curl -LO ftp://ftp.gnu.org/gnu/emacs/emacs-$VERSION.tar.gz
# curl -LO ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$VERSION$POSTFIX.tar.xz
# curl -LO https://gist.githubusercontent.com/takaxp/5294b6c52782d0be0b25342be62e4a77/raw/9c9325288ff03a50ee26e4e32c8ca57c0dd81ace/emacs-25.2-inline-googleime.patch
# curl -LO https://gist.githubusercontent.com/takaxp/01ff965361d70de93e9aba3795193cc7/raw/4265d48c13f33a2046669086756c85a2bb83c318/ns-private.patch
curl -LO https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66c7d06/patch-multicolor-font.diff
curl -LO https://github.com/emacs-mirror/emacs/compare/scratch/ns-drawing.patch
curl -LO http://emacs.1067599.n8.nabble.com/attachment/465838/0/0001-Fix-crash-on-flush-to-display-bug-32812.patch
Tar zxvf emacs-$VERSION$POSTFIX.tar.gz
cd ./emacs-$VERSION
#patch -p1 < ../emacs-25.2-inline-googleime.patch
#patch -p1 < ../ns-private.patch
patch -p1 < ../patch-multicolor-font.diff
patch -p1 < ../ns-drawing.patch
patch -p1 < ../0001-Fix-crash-on-flush-to-display-bug-32812.patch
sleep 5
./autogen.sh
./configure CC=clang --without-x --with-ns --with-modules --with-imagemagick
# ./configure CC=clang --with-xwidgets --with-modules --with-imagemagick
make bootstrap -j1
make install -j1
cd ./nextstep
open .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment