2010-02-20 03:16:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Qemu < Formula
|
2010-02-20 03:16:32 +00:00
|
|
|
homepage 'http://www.qemu.org/'
|
2012-09-07 16:02:09 +00:00
|
|
|
url 'http://wiki.qemu.org/download/qemu-1.2.0.tar.bz2'
|
|
|
|
sha1 '4bbfb35ca2e386e9b731c09a8eb1187c0c0795a8'
|
2010-02-20 03:16:32 +00:00
|
|
|
|
2010-11-02 23:07:45 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'gnutls'
|
2012-05-17 10:34:59 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
|
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
2012-06-18 16:12:16 +00:00
|
|
|
cause 'Compile error: global register variables are not supported'
|
2012-05-17 10:34:59 +00:00
|
|
|
end
|
2010-11-02 23:07:45 +00:00
|
|
|
|
2010-02-20 03:16:32 +00:00
|
|
|
def install
|
2012-06-18 16:12:16 +00:00
|
|
|
# Disable the sdl backend. Let it use CoreAudio instead.
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--cc=#{ENV.cc}
|
|
|
|
--host-cc=#{ENV.cc}
|
|
|
|
--enable-cocoa
|
|
|
|
--disable-bsd-user
|
|
|
|
--disable-guest-agent
|
|
|
|
--disable-sdl
|
|
|
|
]
|
|
|
|
system "./configure", *args
|
2010-02-20 03:16:32 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|