-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathgr-mediatools.rb
41 lines (35 loc) · 1.06 KB
/
gr-mediatools.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
class GrMediatools < Formula
homepage "https://github.com/osh/gr-mediatools"
head "https://github.com/osh/gr-mediatools.git"
patch :DATA
depends_on "cmake" => :build
depends_on "swig" => :build
depends_on "gnuradio"
depends_on "boost"
depends_on "libav"
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/CMakeLists.txt w/CMakeLists.txt
index a3374ac..a833f49 100644
--- i/CMakeLists.txt
+++ w/CMakeLists.txt
@@ -61,7 +61,7 @@ set(BOOST_REQUIRED_COMPONENTS
system
unit_test_framework
)
-find_package(Boost "1.42")
+find_package(Boost "1.42" COMPONENTS system)
if(NOT Boost_FOUND)
message(FATAL_ERROR "Boost required to compile mediatools")