homebrew-core/Formula/qemu.rb
Brett Koonce 93b714d173 qemu 1.4.0
added a libtool env command

Closes Homebrew/homebrew#17886.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-18 13:23:57 -06:00

33 lines
830 B
Ruby

require 'formula'
class Qemu < Formula
homepage 'http://www.qemu.org/'
url 'http://wiki.qemu-project.org/download/qemu-1.4.0.tar.bz2'
sha1 '4288b23acab1e7f4d9da14cb06b13575a0f7d4f4'
head 'git://git.qemu-project.org/qemu.git', :using => :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
# Disable the sdl backend; use CoreAudio instead.
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