Skip to content

Instantly share code, notes, and snippets.

@takaxp
Last active September 24, 2019 15:54
Show Gist options
  • Save takaxp/bece6d376fe43326e04c08eb6dad52b0 to your computer and use it in GitHub Desktop.
Save takaxp/bece6d376fe43326e04c08eb6dad52b0 to your computer and use it in GitHub Desktop.
Build script for NS build with inline-patch in macOS Mojave (see also https://qiita.com/takaxp/items/e07bb286d80fa9dd8e05)
#!/bin/sh
cd ~/Desktop
git clone git://git.sv.gnu.org/emacs.git
curl -LO https://gist.githubusercontent.com/takaxp/77bfc397a2c807281453e8b8b2dfb2b7/raw/44345fa64a0ac97cb324a85a10a8ed49b4f4440c/emacs-26-mojave-inline.patch
# curl -LO https://gist.githubusercontent.com/takaxp/d884e91af3970d0923c3186f8f7188e2/raw/2b8c04e9a27fa5c1e992505bfb0e62e774c03dfe/emacs-26-mojave-googleime.patch
# curl -LO https://gist.githubusercontent.com/takaxp/8a29cd35a9cd56a5ae17e58e652e58c2/raw/948a5654ccd5d552916a072de2d6367a1dd835ed/emacs-26-mojave-ns-private.patch
cd emacs
git reset --hard 6217746dd6
patch -p1 < ../emacs-26-mojave-inline.patch
# patch -p1 < ../emacs-26-mojave-googleime.patch
# patch -p1 < ../emacs-26-mojave-ns-private.patch
sleep 5
./autogen.sh
./configure CC=clang --without-x --with-ns --with-modules
#./configure CC=clang --without-x --with-ns --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