aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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