Created
September 17, 2011 16:20
-
-
Save cesare/1224094 to your computer and use it in GitHub Desktop.
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 23.3 building procedure for MacOSX | |
# thanks to http://masutaka.net/chalow/2011-07-31-2.html | |
# | |
# | |
# settings | |
# | |
emacs_basename="emacs-23.3a" | |
archive_suffix="tar.bz2" | |
emacs_package="${emacs_basename}.${archive_suffix}" | |
emacs_download_url="http://ftp.gnu.org/pub/gnu/emacs/${emacs_package}" | |
package_dir="emacs-23.3" | |
# | |
# download Emacs-23.3 source package | |
# | |
if [ ! -f ${emacs_package} ]; then | |
wget ${emacs_download_url} | |
fi | |
# | |
# download patches for Mac build | |
# | |
wget https://trac.macports.org/raw-attachment/ticket/30268/patch-no-pie.diff | |
wget -O patch-src_unexmacosx.c.diff http://repo.or.cz/w/emacs.git/commitdiff_plain/c8bba48c5889c4773c62a10f7c3d4383881f11c1 | |
wget https://trac.macports.org/raw-attachment/ticket/30268/patch-fix-title-bar.diff | |
# | |
# unpack Emacs source archive and apply patches | |
# | |
if [ -d ${package_dir} ]; then | |
rm -rf ${package_dir} | |
fi | |
tar xvf ${emacs_package} | |
cd ${package_dir} | |
patch -p0 < ../patch-no-pie.diff | |
patch -p1 < ../patch-src_unexmacosx.c.diff | |
patch -p0 < ../patch-fix-title-bar.diff | |
# | |
# configure and build | |
# | |
./configure --with-ns --without-x | |
make | |
make install | |
cd nextstep | |
open /Applications | |
open . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment