50 lines
1.8 KiB
Ruby
50 lines
1.8 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.11.05.tar.gz"
|
|
mirror "https://download.videolan.org/pub/videolan/testing/contrib/live555/live.2020.11.05.tar.gz"
|
|
# Keep a mirror as upstream tarballs are removed after each version
|
|
sha256 "89bdfba7fd215e16be2c9d46a797bf85c5f7f7c46b53dc8af2d1171a658da5b7"
|
|
license "LGPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "802f88bf6d8c831a729fdcedcc949d121f9969762f985fd532cd14f2a31c97da"
|
|
sha256 cellar: :any, big_sur: "fce2e67f55b717cd6889b5f2bc4e21bcde69acc87ed561f5a5bab17dc1aafe8a"
|
|
sha256 cellar: :any, catalina: "4dfd0982dd0e9480a654f8b3d85ac4e66b60ab582306a8aafa9ad060eb86051d"
|
|
sha256 cellar: :any, mojave: "c7bc407cea25d6f3a7e89237f8241067622a630903c4649091fcf3843c9820c3"
|
|
sha256 cellar: :any, high_sierra: "c99d793ff2f28434edbadc70d466a7316ef7d7b8095002d78090218a9b4abe76"
|
|
end
|
|
|
|
# could not get it build since 2020.11.22
|
|
# upstream open issue, https://github.com/rgaufman/live555/issues/29
|
|
disable! date: "2021-11-22", because: :does_not_build
|
|
|
|
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
|