class Srt < Formula desc "Secure Reliable Transport" homepage "https://www.srtalliance.org/" url "https://github.com/Haivision/srt/archive/refs/tags/v1.5.4.tar.gz" sha256 "d0a8b600fe1b4eaaf6277530e3cfc8f15b8ce4035f16af4a5eb5d4b123640cdd" license "MPL-2.0" head "https://github.com/Haivision/srt.git", branch: "master" depends_on "cmake" => :build depends_on "pkg-config" => :build depends_on "openssl@3" def install openssl = Formula["openssl@3"] system "cmake", ".", "-DWITH_OPENSSL_INCLUDEDIR=#{openssl.opt_include}", "-DWITH_OPENSSL_LIBDIR=#{openssl.opt_lib}", "-DCMAKE_INSTALL_BINDIR=bin", "-DCMAKE_INSTALL_LIBDIR=lib", "-DCMAKE_INSTALL_INCLUDEDIR=include", *std_cmake_args system "make", "install" end test do cmd = "#{bin}/srt-live-transmit file:///dev/null file://con/ 2>&1" assert_match "Unsupported source type", shell_output(cmd, 1) end end