forked from titanous/homebrew-gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgr-baz.rb
39 lines (32 loc) · 1007 Bytes
/
gr-baz.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
require 'formula'
class GrBaz < Formula
homepage 'http://wiki.spench.net/wiki/Gr-baz'
head 'https://github.com/balint256/gr-baz.git', :revision => '0392ebece4'
depends_on 'pkg-config' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'libusb'
depends_on 'gnuradio'
def patches
DATA
end
def install
args = ["--prefix=#{prefix}"]
system "autoreconf -i"
system "./configure", *args
system "make"
system "make install"
end
end
__END__
diff --git a/config/usrp_libusb.m4 b/config/usrp_libusb.m4
index cb3130c..c860318 100644
--- a/config/usrp_libusb.m4
+++ b/config/usrp_libusb.m4
@@ -19,7 +19,7 @@ dnl Boston, MA 02110-1301, USA.
AC_DEFUN([USRP_LIBUSB], [
libusbok=yes
- PKG_CHECK_MODULES(USB, libusb, [], [
+ PKG_CHECK_MODULES(USB, libusb-1.0, [], [
AC_LANG_PUSH(C)
AC_CHECK_HEADERS([usb.h], [], [libusbok=no; AC_MSG_RESULT([USRP requires libusb. usb.h not found. See http://libusb.sf.net])])