From bbf9ad18c54bb56a13a62a88222304126780eb12 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Thu, 18 Sep 2014 08:50:08 -0700 Subject: ngspice: pass X build flags explicitly ngspice's configure needs --without-x to stop trying to link to X libraries, but also needs --with-x to actually include X support. Closes #32403. --- Library/Formula/ngspice.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ngspice.rb b/Library/Formula/ngspice.rb index 72d005439..50317944c 100644 --- a/Library/Formula/ngspice.rb +++ b/Library/Formula/ngspice.rb @@ -16,7 +16,11 @@ class Ngspice < Formula --prefix=#{prefix} --with-editline=yes ] - args << "--enable-x" if build.with? "x" + if build.with? "x" + args << "--with-x" + else + args << "--without-x" + end args << "--enable-xspice" if build.with? "xspice" system "./configure", *args -- cgit v1.2.3