libcaca: --disable-x11 arg

Closes Homebrew/homebrew#28291.
Closes Homebrew/homebrew#28300.
This commit is contained in:
Brett Koonce 2014-04-10 11:34:49 -05:00
parent 09bb982427
commit c18fa55888

View file

@ -33,13 +33,18 @@ class Libcaca < Formula
# ../.auto/py-compile: Missing argument to --destdir.
inreplace 'python/Makefile.in', '$(am__py_compile) --destdir "$(DESTDIR)"', "$(am__py_compile) --destdir \"$(cacadir)\""
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-doc",
"--disable-slang",
"--disable-java",
"--disable-csharp",
"--disable-ruby"
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-doc",
"--disable-slang",
"--disable-java",
"--disable-csharp",
"--disable-ruby"]
# fix missing x11 header check: https://github.com/Homebrew/homebrew/issues/28291
args << "--disable-x11" if build.without? "imlib2"
system "./configure", *args
system "make"
ENV.j1 # Or install can fail making the same folder at the same time
system "make install"