From c7a723046824d592bd7bd31f076100e132a8d2f5 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 7 Mar 2014 20:19:07 -0800 Subject: mtools: be explicit about x11 Closes #27216. --- Library/Formula/mtools.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'Library/Formula/mtools.rb') diff --git a/Library/Formula/mtools.rb b/Library/Formula/mtools.rb index 3bcdeefd4..ff782cb99 100644 --- a/Library/Formula/mtools.rb +++ b/Library/Formula/mtools.rb @@ -11,9 +11,19 @@ class Mtools < Formula depends_on :x11 => :optional def install - system "./configure", "LIBS=-liconv", - "--disable-debug", - "--prefix=#{prefix}" - system "make install" + args = ["LIBS=-liconv", + "--disable-debug", + "--prefix=#{prefix}"] + + if build.with? 'x11' + args << "--with-x" + else + args << "--without-x" + end + + system "./configure", *args + system "make" + ENV.j1 + system "make", "install" end end -- cgit v1.2.3