forked from pothosware/homebrew-pothos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlimesuite.rb
58 lines (48 loc) · 1.52 KB
/
limesuite.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
class Limesuite < Formula
desc "Lime suite device drivers, GUI, and SDR support"
homepage "https://github.com/myriadrf/LimeSuite/blob/master/README.md"
head "https://github.com/myriadrf/LimeSuite.git"
url "https://github.com/myriadrf/LimeSuite/archive/v20.10.0.tar.gz"
sha256 "f6d79dc67cb52a5aea839d1dc00e65f85367cb2c275d77f149833d32cf79b467"
depends_on "cmake" => :build
depends_on "sqlite" #core library dependency
depends_on "libusb" => :recommended
depends_on "wxwidgets" => :recommended
depends_on "soapysdr" => :recommended
option "with-images", "Download and install firmware/gatware images"
def install
args = ["-DENABLE_QUICKTEST=OFF"]
args += ["-DENABLE_OCTAVE=OFF"]
if build.with?("images")
args += ["-DDOWNLOAD_IMAGES=TRUE"]
else
args += ["-DDOWNLOAD_IMAGES=FALSE"]
end
if build.with?("libusb")
args += ["-DENABLE_STREAM=ON"]
else
args += ["-DENABLE_STREAM=OFF"]
end
if build.with?("wxwidgets")
args += ["-DENABLE_GUI=ON"]
else
args += ["-DENABLE_GUI=OFF"]
end
#novena is arm linux only
args += ["-DENABLE_NOVENARF7=OFF"]
if build.with?("soapysdr")
args += ["-DENABLE_SOAPY_LMS7=ON"]
else
args += ["-DENABLE_SOAPY_LMS7=OFF"]
end
if !(build.head?)
args += ["-DLIME_SUITE_EXTVER=release"]
end
args += %W[-DLIME_SUITE_ROOT='#{HOMEBREW_PREFIX}']
mkdir "builddir" do
args += std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end
end