wine: fix building without x11

Closes Homebrew/homebrew#21986.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Eric Butler 2013-08-18 14:45:50 -07:00 committed by Adam Vandenberg
parent eea96556cd
commit 2c325574d7

View file

@ -111,6 +111,8 @@ class Wine < Formula
# 64-bit builds of mpg123 are incompatible with 32-bit builds of Wine
args << "--without-mpg123" if Hardware.is_64_bit?
args << "--without-x" if build.without? 'x11'
system "./configure", *args
unless ENV.compiler == :clang or ENV.compiler == :llvm