-
Notifications
You must be signed in to change notification settings - Fork 22
/
pebble-qemu.rb
43 lines (36 loc) · 1.39 KB
/
pebble-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
42
43
class PebbleQemu < Formula
homepage "https://github.com/pebble/qemu"
bottle do
root_url "http://pebble-sdk-homebrew.s3.amazonaws.com"
cellar :any
sha256 "19b65c6791d46ebefbf2bf4cc8a38b77bd060a45a2ca5de853b6a774f9d383b7" => :el_capitan
sha256 "91cc0a6234f9d9d0e6843e072756c78854cb2fae71330d054288c06f5bae4017" => :sierra
end
url "https://github.com/pebble/qemu/archive/v2.5.0-pebble3.zip"
sha256 "aeae67a9339d381761ba05b16358e438ad9d57779a3459acaa4335067d30d28d"
version "2.5.0-pebble3"
head "https://github.com/pebble/qemu.git"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "dtc" => :build
depends_on "glib"
depends_on "pixman"
depends_on "libpng"
depends_on "libjpeg"
def install
system "./configure", "--disable-werror",
"--enable-debug",
'--target-list=arm-softmmu',
"--extra-cflags=-DSTM32_UART_NO_BAUD_DELAY -DSKIP_QUIT_PROMPT",
"--prefix=#{prefix}",
"--disable-mouse",
"--disable-docs"
system "make"
# We only need the one binary.
bin.install ["arm-softmmu/qemu-system-arm"]
# Rename it to avoid conflicting with more standard QEMUs.
mv bin/"qemu-system-arm", bin/"qemu-pebble"
end
end