Skip to content

Instantly share code, notes, and snippets.

@naeramarth7
Last active December 30, 2016 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naeramarth7/be8b26a09f3b5661acac5a8f0229536d to your computer and use it in GitHub Desktop.
Save naeramarth7/be8b26a09f3b5661acac5a8f0229536d to your computer and use it in GitHub Desktop.
qemu 1.7.1 formula for homebrew
require 'formula'
class Qemu < Formula
homepage 'http://www.qemu.org/'
url 'http://wiki.qemu.org/download/qemu-1.7.1.tar.bz2'
sha256 'd68942a004222eebae5d156ceefb308fabd98edb282d1dde49ec810bbf01bef4'
head 'git://git.qemu-project.org/qemu.git'
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
fails_with :clang do
build 318
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment