Add x11 option to emacs

master
Adam Vandenberg 2010-07-13 07:44:01 -07:00
parent e827344c11
commit dd7d28d42b
1 changed files with 9 additions and 1 deletions

View File

@ -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"