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/'
|
2013-05-24 03:25:03 +00:00
|
|
|
url 'http://wiki.qemu-project.org/download/qemu-1.5.0.tar.bz2'
|
|
|
|
sha1 '52d1bd7f8627bb435b95b88ea005b71b9b1a0098'
|
2013-02-06 06:56:13 +00:00
|
|
|
|
2013-05-28 05:32:27 +00:00
|
|
|
head 'git://git.qemu-project.org/qemu.git'
|
2010-02-20 03:16:32 +00:00
|
|
|
|
2013-02-10 06:28:16 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-16 16:07:47 +00:00
|
|
|
depends_on :libtool
|
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'
|
2012-12-04 16:33:45 +00:00
|
|
|
depends_on 'pixman'
|
2013-02-12 06:55:54 +00:00
|
|
|
depends_on 'sdl' => :optional
|
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
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--cc=#{ENV.cc}
|
|
|
|
--host-cc=#{ENV.cc}
|
|
|
|
--enable-cocoa
|
|
|
|
--disable-bsd-user
|
|
|
|
--disable-guest-agent
|
|
|
|
]
|
2013-02-12 07:46:00 +00:00
|
|
|
args << (build.with?('sdl') ? '--enable-sdl' : '--disable-sdl')
|
2013-02-16 16:07:47 +00:00
|
|
|
ENV['LIBTOOL'] = 'glibtool'
|
2012-06-18 16:12:16 +00:00
|
|
|
system "./configure", *args
|
2010-02-20 03:16:32 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|