2017-10-13 07:43:54 +00:00
|
|
|
class Srt < Formula
|
|
|
|
desc "Secure Reliable Transport"
|
|
|
|
homepage "https://www.srtalliance.org/"
|
2018-04-10 03:01:02 +00:00
|
|
|
url "https://github.com/Haivision/srt/archive/v1.3.0.tar.gz"
|
|
|
|
sha256 "645c13a9a5c5b59315f82245737289e071a5441ee40de6e2e45af61e305e1f2c"
|
2017-10-13 07:43:54 +00:00
|
|
|
head "https://github.com/Haivision/srt.git"
|
|
|
|
|
2018-02-14 15:12:16 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2018-04-10 06:48:37 +00:00
|
|
|
sha256 "d9dcee275c311bbf3a042b3dece0d6e49f2280748fbb8202c859c5140a344982" => :high_sierra
|
|
|
|
sha256 "2dacbc47b25ece470530896e24817161d7b5bfe069dc304fedb7d8dd374ca811" => :sierra
|
|
|
|
sha256 "fc80f8ad53aba6ffe5daf0de2827e3adb44066d97fa1e705c906bd305c427134" => :el_capitan
|
2018-02-14 15:12:16 +00:00
|
|
|
end
|
|
|
|
|
2017-10-13 07:43:54 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "openssl"
|
|
|
|
|
|
|
|
def install
|
|
|
|
openssl = Formula["openssl"]
|
|
|
|
system "cmake", ".", "-DWITH_OPENSSL_INCLUDEDIR=#{openssl.opt_include}",
|
|
|
|
"-DWITH_OPENSSL_LIBDIR=#{openssl.opt_lib}",
|
|
|
|
*std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2018-04-10 03:01:02 +00:00
|
|
|
cmd = "#{bin}/stransmit file:///dev/null file://con/ 2>&1"
|
|
|
|
assert_match "Unsupported source type", shell_output(cmd, 1)
|
2017-10-13 07:43:54 +00:00
|
|
|
end
|
|
|
|
end
|