50 lines
1.5 KiB
Ruby
50 lines
1.5 KiB
Ruby
class Openrtsp < Formula
|
|
desc "Command-line RTSP client"
|
|
homepage "http://www.live555.com/openRTSP"
|
|
url "http://www.live555.com/liveMedia/public/live.2020.08.19.tar.gz"
|
|
mirror "https://download.videolan.org/pub/videolan/testing/contrib/live555/live.2020.08.19.tar.gz"
|
|
# Keep a mirror as upstream tarballs are removed after each version
|
|
sha256 "af3af7f2510b0b45f38892c232abca2cee2ab36a62503e7085b47ed2c3c2c537"
|
|
license "LGPL-3.0-or-later"
|
|
|
|
livecheck do
|
|
url "http://www.live555.com/liveMedia/public/"
|
|
regex(/href=.*?live[._-]v?(\d+(?:\.\d+)+[a-z]?)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "7843987b297a82dd8528990c0b5f8b262871b6421765798a684eb360065a4869" => :catalina
|
|
sha256 "8e3d0ebec29c89b1b42b3a469a750d5dc947565297e4d3877962a7dde0baffce" => :mojave
|
|
sha256 "668801a282a83ee70ddd2aa62090cf9c4101e1d0b73e4654a88505971dd03f0d" => :high_sierra
|
|
end
|
|
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
# Avoid linkage to system OpenSSL
|
|
libs = [
|
|
Formula["openssl@1.1"].opt_lib/"libcrypto.dylib",
|
|
Formula["openssl@1.1"].opt_lib/"libssl.dylib",
|
|
]
|
|
|
|
system "./genMakefiles", "macosx"
|
|
system "make", "PREFIX=#{prefix}",
|
|
"LIBS_FOR_CONSOLE_APPLICATION=#{libs.join(" ")}", "install"
|
|
|
|
# Move the testing executables out of the main PATH
|
|
libexec.install Dir.glob(bin/"test*")
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
Testing executables have been placed in:
|
|
#{libexec}
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
assert_match "GNU", shell_output("#{bin}/live555ProxyServer 2>&1", 1)
|
|
end
|
|
end
|