aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Lapinsky2013-09-10 10:56:40 -0700
committerAdam Vandenberg2013-09-10 21:53:50 -0700
commitc7790d9fb7a3d692f5afb485b7260abf2913225d (patch)
tree92bcee2f928f285843e3f50dfd3b77e97df634d7 /Library/Formula
parent51053bd9fda5981d0fee090d6367115765a5a070 (diff)
downloadhomebrew-c7790d9fb7a3d692f5afb485b7260abf2913225d.tar.bz2
openocd: add head build support
Closes #22447. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/open-ocd.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/open-ocd.rb b/Library/Formula/open-ocd.rb
index 21c20912d..a8f9a6559 100644
--- a/Library/Formula/open-ocd.rb
+++ b/Library/Formula/open-ocd.rb
@@ -4,6 +4,7 @@ class OpenOcd < Formula
homepage 'http://sourceforge.net/projects/openocd/'
url 'http://downloads.sourceforge.net/project/openocd/openocd/0.7.0/openocd-0.7.0.tar.bz2'
sha1 '40fa518af4fae273f24478249fc03aa6fcce9176'
+ head 'git://git.code.sf.net/p/openocd/code'
option 'enable-ft2232_libftdi', 'Enable building support for FT2232 based devices with libftdi driver'
option 'enable-ft2232_ftd2xx', 'Enable building support for FT2232 based devices with FTD2XX driver'
@@ -11,6 +12,11 @@ class OpenOcd < Formula
depends_on 'libusb-compat'
depends_on 'libftdi0' if build.include? 'enable-ft2232_libftdi'
+ if build.head?
+ depends_on :libtool
+ depends_on :automake
+ end
+
def install
args = %W[
--disable-dependency-tracking
@@ -44,6 +50,7 @@ class OpenOcd < Formula
ENV['CCACHE'] = 'none'
+ system "./bootstrap", "nosubmodule" if build.head?
system "./configure", *args
system "make install"
end