-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathgr-op25.rb
89 lines (78 loc) · 3.52 KB
/
gr-op25.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
class GrOp25 < Formula
homepage "http://op25.osmocom.org/trac/wiki"
head "git://op25.osmocom.org/op25.git"
patch :DATA
depends_on "cmake" => :build
depends_on "gnuradio"
depends_on "gr-osmosdr"
depends_on "boost"
depends_on "itpp"
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
__END__
diff --git i/op25/gr-op25/CMakeLists.txt w/op25/gr-op25/CMakeLists.txt
index 9711a91..e661b9a 100644
--- i/op25/gr-op25/CMakeLists.txt
+++ w/op25/gr-op25/CMakeLists.txt
@@ -83,7 +83,6 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
########################################################################
# Find gnuradio build dependencies
########################################################################
-find_package(GnuradioRuntime)
find_package(CppUnit)
# To run a more advanced search for GNU Radio and it's components and
@@ -91,8 +90,8 @@ find_package(CppUnit)
# of GR_REQUIRED_COMPONENTS (in all caps) and change "version" to the
# minimum API compatible version required.
#
-# set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS FILTER ...)
-# find_package(Gnuradio "version")
+set(GR_REQUIRED_COMPONENTS RUNTIME FILTER PMT)
+find_package(Gnuradio)
if(NOT GNURADIO_RUNTIME_FOUND)
message(FATAL_ERROR "GnuRadio Runtime required to compile op25")
diff --git i/op25/gr-op25_repeater/CMakeLists.txt w/op25/gr-op25_repeater/CMakeLists.txt
index c3859be..e335106 100644
--- i/op25/gr-op25_repeater/CMakeLists.txt
+++ w/op25/gr-op25_repeater/CMakeLists.txt
@@ -83,7 +83,6 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
########################################################################
# Find gnuradio build dependencies
########################################################################
-find_package(GnuradioRuntime)
find_package(CppUnit)
# To run a more advanced search for GNU Radio and it's components and
@@ -91,8 +90,8 @@ find_package(CppUnit)
# of GR_REQUIRED_COMPONENTS (in all caps) and change "version" to the
# minimum API compatible version required.
#
-# set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS FILTER ...)
-# find_package(Gnuradio "version")
+set(GR_REQUIRED_COMPONENTS RUNTIME FILTER PMT)
+find_package(Gnuradio)
if(NOT GNURADIO_RUNTIME_FOUND)
message(FATAL_ERROR "GnuRadio Runtime required to compile op25_repeater")
diff --git i/op25/gr-op25_repeater/lib/CMakeLists.txt w/op25/gr-op25_repeater/lib/CMakeLists.txt
index 9493837..83138fa 100644
--- i/op25/gr-op25_repeater/lib/CMakeLists.txt
+++ w/op25/gr-op25_repeater/lib/CMakeLists.txt
@@ -50,9 +50,7 @@ list(APPEND op25_repeater_sources
)
add_library(gnuradio-op25_repeater SHARED ${op25_repeater_sources})
-find_library(GR_FILTER_LIBRARY libgnuradio-filter.so )
-set(GR_FILTER_LIBRARIES ${GR_FILTER_LIBRARY})
-target_link_libraries(gnuradio-op25_repeater ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${GR_FILTER_LIBRARIES} imbe_vocoder)
+target_link_libraries(gnuradio-op25_repeater ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_FILTER_LIBRARIES} imbe_vocoder)
set_target_properties(gnuradio-op25_repeater PROPERTIES DEFINE_SYMBOL "gnuradio_op25_repeater_EXPORTS")
########################################################################