aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-07 20:19:07 -0800
committerAdam Vandenberg2014-03-07 20:20:31 -0800
commitc7a723046824d592bd7bd31f076100e132a8d2f5 (patch)
tree0af3dbec9c5d3962d4b6b4cf450c3e8edb9b0d6f /Library
parentfbd586a8670996804433f5927f11715deb6d49d2 (diff)
downloadhomebrew-c7a723046824d592bd7bd31f076100e132a8d2f5.tar.bz2
mtools: be explicit about x11
Closes #27216.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mtools.rb18
1 files changed, 14 insertions, 4 deletions
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