Last active
December 30, 2016 10:47
-
-
Save naeramarth7/be8b26a09f3b5661acac5a8f0229536d to your computer and use it in GitHub Desktop.
qemu 1.7.1 formula for homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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