-
Notifications
You must be signed in to change notification settings - Fork 17
/
pothos.rb
36 lines (30 loc) · 944 Bytes
/
pothos.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
class Pothos < Formula
desc "Pothos data-flow software suite"
homepage "https://github.com/pothosware/PothosCore/wiki"
head "https://github.com/pothosware/PothosCore.git"
url "https://github.com/pothosware/PothosCore/archive/pothos-0.7.1.tar.gz"
sha256 "fc589209b6591068827a69add3c5d0493fe368debc929c7446eef2bac844e8c1"
depends_on "cmake" => :build
depends_on "poco"
depends_on "nlohmann/json/nlohmann_json"
depends_on "pothosware/pothos/muparserx"
def install
args = []
if !(build.head?)
args += ["-DPOTHOS_EXTVER=release"]
end
args += %W[
-DPOTHOS_ROOT='#{HOMEBREW_PREFIX}'
-DENABLE_INTERNAL_POCO=OFF
-DENABLE_INTERNAL_SPUCE=OFF
-DENABLE_INTERNAL_MUPARSERX=OFF
-DENABLE_INTERNAL_SERIALIZATION=OFF
-DENABLE_TOOLKITS=OFF
]
mkdir "build" do
args += std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end
end