homebrew-core/Formula/qemu.rb

41 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Qemu < Formula
homepage 'http://www.qemu.org/'
url 'http://wiki.qemu-project.org/download/qemu-1.7.0.tar.bz2'
sha1 '4b5a21a614207e74a61659f7a6edecad6c31be95'
revision 1
2013-05-28 05:32:27 +00:00
head 'git://git.qemu-project.org/qemu.git'
2013-02-10 06:28:16 +00:00
depends_on 'pkg-config' => :build
depends_on :libtool
depends_on 'jpeg'
depends_on 'gnutls'
depends_on 'glib'
depends_on 'pixman'
depends_on 'vde' => :optional
depends_on 'sdl' => :optional
2014-03-17 02:35:22 +00:00
patch :p0 do
url "https://trac.macports.org/export/97499%20/trunk/dports/emulators/qemu/files/patch-configure.diff"
sha1 "3cba7a61e2a63c73f45d086300a4c42f2ff7de17"
end
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')
args << (build.with?('vde') ? '--enable-vde' : '--disable-vde')
ENV['LIBTOOL'] = 'glibtool'
system "./configure", *args
system "make", "V=1", "install"
end
end