emacs: fix linking on X11

Borrow a fix from MacPorts to fix x11 support
master
Adam Vandenberg 2012-03-10 10:49:41 -08:00
parent 41cb6c06ed
commit b453234aa6
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ class Emacs < Formula
else
if ARGV.include? "--with-x"
ENV.x11
# These libs are not specified in xft's .pc. See:
# https://trac.macports.org/browser/trunk/dports/editors/emacs/Portfile#L74
# https://github.com/mxcl/homebrew/issues/8156
ENV.append 'LDFLAGS', '-lfreetype -lfontconfig'
args << "--with-x"
args << "--with-gif=no" << "--with-tiff=no" << "--with-jpeg=no"
else