forked from franc0is/homebrew-pebble-fw
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpebble-openocd.rb
32 lines (27 loc) · 1.02 KB
/
pebble-openocd.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
class PebbleOpenocd < Formula
homepage "https://github.com/pebble/openocd"
url "[email protected]:pebble/openocd-dev.git", :using => :git, :branch => "pebble_fork"
version "0.9"
option "with-public-repo", "Build using the public Pebble OpenOCD repo"
if build.with? "public-repo"
url "[email protected]:pebble/openocd.git", :using => :git, :branch => "pebble_fork"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "texinfo" => :build
depends_on 'pkg-config' => :build
depends_on 'libusb' => :recommended
# some drivers are still not converted to libusb-1.0
depends_on 'libusb-compat' if build.with? 'libusb'
depends_on 'libftdi' => :recommended
depends_on 'hidapi' => :recommended
def install
system "./bootstrap"
system "./configure", "--disable-werror",
"--enable-maintainer-mode",
"--enable-ftdi",
"--prefix=#{prefix}"
system "make", "install"
end
end