-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall-emacs-macos.sh
executable file
·48 lines (39 loc) · 1.52 KB
/
install-emacs-macos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Look in the variable system-configuration-options and system-configuration-features
# brew 28
# brew tap d12frosted/emacs-plus
# brew install emacs-plus@28 --with-native-comp --with-imagemagick --with-xwidgets --with-elrumo2-icon
# brew 29
# brew tap d12frosted/emacs-plus
# brew install emacs-plus@29 --with-native-comp --with-imagemagick --with-xwidgets --with-elrumo2-icon
# install with custom macos version
# note that this takes a really long time to clone. almost an hour.
# brew edit emacs-plus@29
# url "https://github.com/tyler-dodge/emacs.git", :branch => "tyler-main-2"
# brew install --verbose emacs-plus@29 --with-native-comp --with-elrumo2-icon --with-imagemagick --with-xwidgets
#######################
# installing manually #
#######################
# brew install \
# pkg-config \
# texinfo \
# libgccjit \
# autoconf \
# automake \
# make \
# jansson \
# gnutls \
# mailutils \
# imagemagick \
# tree-sitter \
# mailutils
export LDFLAGS="-L/opt/homebrew/Cellar/libgccjit/13.2.0/lib/gcc/13"
export LIBRARY_PATH="-L/opt/homebrew/Cellar/libgccjit/13.2.0/lib/gcc/13"
export CPATH="-I/opt/homebrew/Cellar/libgccjit/13.2.0/include"
export CFLAGS="-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
# export CC=/opt/homebrew/bin/gcc-13
# export CXX=/opt/homebrew/bin/g++-13
# export CPP=/opt/homebrew/bin/cpp-13
./autogen.sh
./configure --with-modules --with-mailutils --with-xwidgets --with-imagemagick --with-native-compilation --with-ns --disable-ns-self-contained
gmake -j4