aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-10 10:49:41 -0800
committerAdam Vandenberg2012-03-10 10:49:41 -0800
commit9bfd07aa4dd969c4611ff8bdf65470f56f51cba5 (patch)
tree31f9a01882a238d62ece146eace15b88fca4a34d /Library/Formula
parentf658918e55254ca7b1fc5852552177a2b45b10b6 (diff)
downloadhomebrew-9bfd07aa4dd969c4611ff8bdf65470f56f51cba5.tar.bz2
emacs: fix linking on X11
Borrow a fix from MacPorts to fix x11 support
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/emacs.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 87a32325a..5fb1e538d 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -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