aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-02-11 22:55:54 -0800
committerMike McQuaid2013-02-11 22:57:01 -0800
commit0b726068f2fc72eff18ca750f2702981828ba499 (patch)
treedf754d374b58b4726e281729ee4249d4fe92f100 /Library/Formula
parentbc24aa7058789ce06a72d01b021226841c4a561b (diff)
downloadhomebrew-0b726068f2fc72eff18ca750f2702981828ba499.tar.bz2
qemu: add sdl option.
Closes #17754.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qemu.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/qemu.rb b/Library/Formula/qemu.rb
index e1d0e3f49..6a7399723 100644
--- a/Library/Formula/qemu.rb
+++ b/Library/Formula/qemu.rb
@@ -12,6 +12,7 @@ class Qemu < Formula
depends_on 'gnutls'
depends_on 'glib'
depends_on 'pixman'
+ depends_on 'sdl' => :optional
def install
# Disable the sdl backend; use CoreAudio instead.
@@ -22,8 +23,8 @@ class Qemu < Formula
--enable-cocoa
--disable-bsd-user
--disable-guest-agent
- --disable-sdl
]
+ args << build.with?('sdl') ? '--enable-sdl' : '--disable-sdl'
system "./configure", *args
system "make install"
end