homebrew-core/Formula/qemu.rb
Li-Wen Hsu 5d0d29a8f8 qemu 1.5.1
Closes Homebrew/homebrew#21137.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-11 06:38:39 -07:00

32 lines
760 B
Ruby

require 'formula'
class Qemu < Formula
homepage 'http://www.qemu.org/'
url 'http://wiki.qemu-project.org/download/qemu-1.5.1.tar.bz2'
sha1 '1e1339dffb01c98f33ec8451266cee1adf3b41be'
head 'git://git.qemu-project.org/qemu.git'
depends_on 'pkg-config' => :build
depends_on :libtool
depends_on 'jpeg'
depends_on 'gnutls'
depends_on 'glib'
depends_on 'pixman'
depends_on 'sdl' => :optional
def install
args = %W[
--prefix=#{prefix}
--cc=#{ENV.cc}
--host-cc=#{ENV.cc}
--enable-cocoa
--disable-bsd-user
--disable-guest-agent
]
args << (build.with?('sdl') ? '--enable-sdl' : '--disable-sdl')
ENV['LIBTOOL'] = 'glibtool'
system "./configure", *args
system "make install"
end
end