Last active
April 12, 2022 02:02
-
-
Save tek-nishi/603314c1e482a60a569d559c1a960e7b to your computer and use it in GitHub Desktop.
emacsをビルドするスクリプト
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 | |
EMACS_VER=28.1 | |
MACPORT_VER=9.0 | |
tar xvfz emacs-${EMACS_VER}.tar.gz | |
tar xvfz emacs-${EMACS_VER}-mac-${MACPORT_VER}.tar.gz | |
cd emacs-${EMACS_VER} | |
patch -p 1 < ../emacs-${EMACS_VER}-mac-${MACPORT_VER}/patch-mac | |
cp -r ../emacs-${EMACS_VER}-mac-${MACPORT_VER}/mac mac | |
cp ../emacs-${EMACS_VER}-mac-${MACPORT_VER}/src/* src | |
cp ../emacs-${EMACS_VER}-mac-${MACPORT_VER}/lisp/term/mac-win.el lisp/term | |
cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources/Emacs.icns | |
installprefix=`pwd`/build | |
app_dir=$installprefix/Emacs.app/Contents/Resources | |
compver=x86_64-apple-darwin`uname -r` | |
# LIBXML2 for Catalina | |
MACSDK=`xcrun --show-sdk-path` | |
export LIBXML2_CFLAGS="-I${MACSDK}/usr/include/libxml2" | |
export LIBXML2_LIBS="-lxml2" | |
set -e | |
./autogen.sh | |
./configure --without-x --without-dbus --without-xpm CC=clang CFLAGS='-Os' --enable-mac-app=$installprefix --prefix=$installprefix --enable-mac-self-contained --with-native-compilation | |
make | |
make install | |
set +e | |
echo 'Done! Find your Emacs.app at '$installprefix'.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
28.1対応