homebrew-core/Formula/srt.rb

32 lines
1.1 KiB
Ruby
Raw Normal View History

class Srt < Formula
desc "Secure Reliable Transport"
homepage "https://www.srtalliance.org/"
url "https://github.com/Haivision/srt/archive/v1.3.0.tar.gz"
sha256 "645c13a9a5c5b59315f82245737289e071a5441ee40de6e2e45af61e305e1f2c"
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
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
cmd = "#{bin}/stransmit file:///dev/null file://con/ 2>&1"
assert_match "Unsupported source type", shell_output(cmd, 1)
end
end