aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/emacs.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 962045eed..ea0ce9285 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -13,6 +13,7 @@ class Emacs <Formula
def options
[
["--cocoa", "Build a Cocoa version of emacs"],
+ ["--with-x", "Include X11 support"],
["--use-git-head", "Use repo.or.cz git mirror for HEAD builds"],
]
end
@@ -74,7 +75,14 @@ class Emacs <Formula
system "make install"
prefix.install "nextstep/Emacs.app"
else
- configure_args << "--without-x"
+ if ARGV.include? "--with-x"
+ configure_args << "--with-x"
+ configure_args << "--with-gif=no"
+ configure_args << "--with-tiff=no"
+ configure_args << "--with-jpeg=no"
+ else
+ configure_args << "--without-x"
+ end
system "./configure", *configure_args
system "make"
system "make install"