5fdc41eaec
The VDE (Virtual Distributed Ethernet) networking model is useful for QEMU, as it allows muliple QEMU instances to connect to virtual networks. More interesting is that a VDE server such as vde_switch can connect a VDE network to the host machines network, letting all QEMU instances on the virtual network connect over the host's network. This change adds support for VDE networking in QEMU by using the vde project. Closes Homebrew/homebrew#22017. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
34 lines
860 B
Ruby
34 lines
860 B
Ruby
require 'formula'
|
|
|
|
class Qemu < Formula
|
|
homepage 'http://www.qemu.org/'
|
|
url 'http://wiki.qemu-project.org/download/qemu-1.6.0.tar.bz2'
|
|
sha1 '5f754fc128aaafd0c7aee2204d453f4be1ac859e'
|
|
|
|
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
|
|
|
|
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 install"
|
|
end
|
|
end
|