2017-10-13 07:43:54 +00:00
|
|
|
class Srt < Formula
|
|
|
|
desc "Secure Reliable Transport"
|
|
|
|
homepage "https://www.srtalliance.org/"
|
2018-06-16 06:45:59 +00:00
|
|
|
url "https://github.com/Haivision/srt/archive/v1.3.1.tar.gz"
|
|
|
|
sha256 "f202801d9e53cd8854fccc1ca010272076c32c318396c8f61fb9a61807c3dbea"
|
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-06-16 07:20:57 +00:00
|
|
|
sha256 "848cb1edeaa90be70ddd2000c79f42432d881de53f4a47e00876c728b45f4fb8" => :high_sierra
|
|
|
|
sha256 "18ada4492fb671487fca41eeaaa8dcae9ebf7d096f2becb7894b8d215c7615ea" => :sierra
|
|
|
|
sha256 "52267ab27bbc19a52285505d7f9630c990cb6ed3ef5abd233bfc1a8c92b864e6" => :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
|