Last active
April 3, 2018 23:34
-
-
Save hayamiz/9bc9c4a6a433c69cf91fe35f0a4719ae to your computer and use it in GitHub Desktop.
Build Emacs25.3 with IME patched
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
[[ $MSYSTEM = "MINGW64" ]] | |
pacman -S --noconfirm base-devel \ | |
mingw-w64-x86_64-toolchain \ | |
mingw-w64-x86_64-xpm-nox \ | |
mingw-w64-x86_64-libtiff \ | |
mingw-w64-x86_64-giflib \ | |
mingw-w64-x86_64-libpng \ | |
mingw-w64-x86_64-libjpeg-turbo \ | |
mingw-w64-x86_64-librsvg \ | |
mingw-w64-x86_64-libxml2 \ | |
mingw-w64-x86_64-gnutls \ | |
mingw-w64-x86_64-zlib | |
ver=25.3 | |
mkdir -p c:/emacs/src/ | |
wget http://ftpmirror.gnu.org/emacs/emacs-25.2.tar.xz -O c:/emacs/src/emacs-${ver}.tar.xz | |
cd c:/emacs/src/ | |
rm -rf ./emacs-$ver/ | |
wget https://github.com/K-Arakawa/emacs-ime-patch/raw/master/emacs-$ver-ime.patch -O ./emacs-$ver-ime.patch | |
tar xvf emacs-$ver.tar.xz | |
cd ./emacs-$var/ | |
patch -p1 ../emacs-$ver-ime.patch | |
export CFLAGS='-Ofast -march=x86-64 -mtune=corei7 -static' | |
export PKG_CONFIG_PATH=/mingw64/lib/pkgconfig | |
export MSYSTEM=MINGW64 | |
./configure --prefix=c:/emacs/emacs-25.3 --without-dbus --without-compress-install --with-modules --with-w32 --with-w32-ime | |
make bootstrap | |
make install-strip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment