homebrew-core/Formula/srt.rb
2018-04-09 23:56:01 -07:00

31 lines
1.1 KiB
Ruby

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"
bottle do
cellar :any
sha256 "d9dcee275c311bbf3a042b3dece0d6e49f2280748fbb8202c859c5140a344982" => :high_sierra
sha256 "2dacbc47b25ece470530896e24817161d7b5bfe069dc304fedb7d8dd374ca811" => :sierra
sha256 "fc80f8ad53aba6ffe5daf0de2827e3adb44066d97fa1e705c906bd305c427134" => :el_capitan
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