-
Notifications
You must be signed in to change notification settings - Fork 3
/
libad9361-iio.rb
32 lines (27 loc) · 960 Bytes
/
libad9361-iio.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
class Libad9361Iio < Formula
desc "IIO AD9361 library for filter design and handling, multi-chip sync, etc."
homepage "https://analogdevicesinc.github.io/libad9361-iio/"
url "https://github.com/analogdevicesinc/libad9361-iio/archive/v0.3.tar.gz"
sha256 "1dc35dd997e1938a97489fa1f349ee16889f9de8901a2c7af46184468dc90598"
license "LGPL-2.1"
head "https://github.com/analogdevicesinc/libad9361-iio.git"
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "libiio"
def install
mkdir "build" do
cmake_args = [
"-DOSX_PACKAGE=OFF",
]
system "cmake", "..", *cmake_args, *std_cmake_args
system "make"
system "make", "install"
end
# For some reason they install a framework in lib/
frameworks.install_symlink lib/"ad9361.framework"
end
test do
assert_match "ad9361_fmcomms5_phase_sync",
shell_output("nm #{frameworks}/ad9361.framework/ad9361")
end
end