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/'
|
2012-04-29 18:04:24 +00:00
|
|
|
url 'http://wiki.qemu.org/download/qemu-1.0.1.tar.gz'
|
|
|
|
sha1 '4d08b5a83538fcd7b222bec6f1c584da8d12497a'
|
2010-02-20 03:16:32 +00:00
|
|
|
|
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'
|
|
|
|
|
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
end
|
2010-11-02 23:07:45 +00:00
|
|
|
|
2012-04-29 18:04:24 +00:00
|
|
|
# Borrow these patches from MacPorts
|
|
|
|
def patches
|
|
|
|
{ :p0 => [
|
|
|
|
"https://trac.macports.org/export/92470/trunk/dports/emulators/qemu/files/patch-configure.diff",
|
|
|
|
"https://trac.macports.org/export/92470/trunk/dports/emulators/qemu/files/patch-cocoa-uint16-redefined.diff"
|
|
|
|
]}
|
2012-03-18 20:33:24 +00:00
|
|
|
end
|
2011-07-04 20:05:34 +00:00
|
|
|
|
2010-02-20 03:16:32 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2012-04-29 18:04:24 +00:00
|
|
|
"--cc=#{ENV.cc}",
|
|
|
|
"--host-cc=#{ENV.cc}",
|
2010-02-20 03:16:32 +00:00
|
|
|
"--disable-darwin-user",
|
|
|
|
"--enable-cocoa",
|
2011-08-19 22:04:14 +00:00
|
|
|
"--disable-bsd-user",
|
|
|
|
"--disable-guest-agent"
|
2010-02-20 03:16:32 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|