forked from robotastic/homebrew-hackrf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gqrx.rb
51 lines (42 loc) · 1.34 KB
/
gqrx.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
44
45
46
47
48
49
50
51
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
# from: https://github.com/xlfe/homebrew-gnuradio
class Gqrx < Formula
homepage 'https://github.com/csete/gqrx'
head 'https://github.com/csete/gqrx.git', :branch => 'master'
depends_on 'cmake' => :build
depends_on 'qt'
#brew install --with-c+11 --universal boost
depends_on 'boost'
depends_on 'gnuradio'
depends_on 'gr-osmosdr'
def patches
#patch to compile to binary, comment out pulse audio and link boost correctly
DATA
end
def install
system "qmake -set PKG_CONFIG /usr/local/bin/pkg-config"
system "qmake -query"
system "qmake gqrx.pro"
system "make"
bin.install 'gqrx.app/Contents/MacOS/gqrx'
end
end
__END__
diff --git a/gqrx.pro b/gqrx.pro
index 2571518..5e9c600 100644
--- a/gqrx.pro
+++ b/gqrx.pro
@@ -233,7 +233,12 @@
}
macx {
- LIBS += -lboost_system-mt -lboost_program_options-mt
+ LIBS += -lboost_system-mt -lboost_program_options-mt -lgnuradio-audio -lgnuradio-runtime -lgnuradio-osmosdr
+ QMAKE_LIBDIR += /usr/local/lib
+ INCLUDEPATH += /usr/local/include
+ INCLUDEPATH += /usr/local/include/gnuradio
+ INCLUDEPATH += /usr/local/include/osmosdr
+ INCLUDEPATH += /opt/local/include
}
OTHER_FILES += \