forked from dholm/homebrew-sdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgr-sdr.rb
28 lines (24 loc) · 799 Bytes
/
gr-sdr.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
class GrSdr < Formula
homepage "https://github.com/pothosware/gr-sdr"
head "https://github.com/pothosware/gr-sdr.git"
depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "graphviz" => :build
depends_on "swig" => :build
depends_on "boost"
depends_on "cppunit"
depends_on "gnuradio"
depends_on "pothosware/pothos/soapysdr"
def install
mkdir "build" do
ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup"
# Point Python library to existing path or CMake test will fail.
args = %W[
-DCMAKE_SHARED_LINKER_FLAGS='-Wl,-undefined,dynamic_lookup'
-DPYTHON_LIBRARY='#{HOMEBREW_PREFIX}/lib/libgnuradio-runtime.dylib'
] + std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end
end