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-12-06 01:35:22 +00:00
|
|
|
url 'http://wiki.qemu-project.org/download/qemu-1.7.0.tar.bz2'
|
|
|
|
sha1 '4b5a21a614207e74a61659f7a6edecad6c31be95'
|
2014-03-06 03:54:59 +00:00
|
|
|
revision 1
|
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-08-19 20:13:37 +00:00
|
|
|
depends_on 'vde' => :optional
|
2013-02-12 06:55:54 +00:00
|
|
|
depends_on 'sdl' => :optional
|
2010-11-02 23:07:45 +00:00
|
|
|
|
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"
|
2013-12-06 01:35:22 +00:00
|
|
|
end
|
|
|
|
|
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-08-19 20:13:37 +00:00
|
|
|
args << (build.with?('vde') ? '--enable-vde' : '--disable-vde')
|
2013-02-16 16:07:47 +00:00
|
|
|
ENV['LIBTOOL'] = 'glibtool'
|
2012-06-18 16:12:16 +00:00
|
|
|
system "./configure", *args
|
2013-12-06 01:35:22 +00:00
|
|
|
system "make", "V=1", "install"
|
2010-02-20 03:16:32 +00:00
|
|
|
end
|
|
|
|
end
|