-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathgr-fosphor.rb
28 lines (24 loc) · 895 Bytes
/
gr-fosphor.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 GrFosphor < Formula
homepage "http://sdr.osmocom.org/trac/wiki/fosphor"
head "git://git.osmocom.org/gr-fosphor"
option "with-qt", "Build with QT widgets in addition to wxWidgets"
depends_on "cmake" => :build
depends_on "pyqt" if build.with? "qt"
depends_on "freetype"
depends_on "glfw3"
depends_on "gnuradio"
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'
-DFREETYPE2_INCLUDE_DIR_ftheader='#{Formula["freetype"].include}'
] + std_cmake_args
args << "-DENABLE_QT=ON" if build.with? "qt"
system "cmake", "..", *args
system "make", "install"
end
end
end