-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathi386-jos-elf-qemu.rb
41 lines (35 loc) · 1.07 KB
/
i386-jos-elf-qemu.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class I386JosElfQemu < Formula
desc "x86 Emulator"
homepage "http://wiki.qemu.org"
head "https://github.com/xiw/qemu.git", :branch => "6.828-2.3.0"
conflicts_with "qemu"
depends_on "pkg-config" => :build
depends_on "libtool" => :build
depends_on "jpeg"
depends_on "gnutls"
depends_on "glib"
depends_on "pixman"
depends_on "vde" => :optional
depends_on "sdl" => :optional
depends_on "gtk+" => :optional
depends_on "libssh2" => :optional
def install
ENV["LIBTOOL"] = "glibtool"
args = %W[
--target-list=i386-softmmu
--prefix=#{prefix}
--cc=#{ENV.cc}
--host-cc=#{ENV.cc}
--enable-cocoa
--disable-bsd-user
--disable-guest-agent
--disable-kvm
]
args << (build.with?("sdl") ? "--enable-sdl" : "--disable-sdl")
args << (build.with?("vde") ? "--enable-vde" : "--disable-vde")
args << (build.with?("gtk+") ? "--enable-gtk" : "--disable-gtk")
args << (build.with?("libssh2") ? "--enable-libssh2" : "--disable-libssh2")
system "./configure", *args
system "make", "V=1", "install"
end
end