Skip to content

Commit a9bc5ff

Browse files
committed
rtmpdump: update 2.4-20151223_3 bottle.
1 parent 597cbc5 commit a9bc5ff

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

Formula/r/rtmpdump.rb

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
class Rtmpdump < Formula
2+
desc "Tool for downloading RTMP streaming media"
3+
homepage "https://rtmpdump.mplayerhq.hu/"
4+
url "https://deb.debian.org/debian/pool/main/r/rtmpdump/rtmpdump_2.4+20151223.gitfa8646d.1.orig.tar.gz"
5+
mirror "http://deb.debian.org/debian/pool/main/r/rtmpdump/rtmpdump_2.4+20151223.gitfa8646d.1.orig.tar.gz"
6+
version "2.4-20151223"
7+
sha256 "5c032f5c8cc2937eb55a81a94effdfed3b0a0304b6376147b86f951e225e3ab5"
8+
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
9+
revision 3
10+
head "https://git.ffmpeg.org/rtmpdump.git", branch: "master"
11+
12+
livecheck do
13+
url "https://cdn-aws.deb.debian.org/debian/pool/main/r/rtmpdump/"
14+
regex(/href=.*?rtmpdump[._-]v?(\d+(?:[.+]\d+)+)[^"' >]*?\.orig\.t/i)
15+
end
16+
17+
bottle do
18+
root_url "https://github.com/gromgit/homebrew-core-aarch64_linux/releases/download/rtmpdump-2.4-20151223"
19+
sha256 cellar: :any_skip_relocation, aarch64_linux: "a87d57392127ca459631c21856f96bf2596a7bce414c980d1c8bf5dda29fe2fc"
20+
end
21+
22+
depends_on "openssl@3"
23+
24+
uses_from_macos "zlib"
25+
26+
conflicts_with "flvstreamer", because: "both install 'rtmpsrv', 'rtmpsuck' and 'streams' binary"
27+
28+
# Patch for OpenSSL 1.1 compatibility
29+
# Taken from https://github.com/JudgeZarbi/RTMPDump-OpenSSL-1.1
30+
patch :p0 do
31+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/rtmpdump/openssl-1.1.diff"
32+
sha256 "3c9167e642faa9a72c1789e7e0fb1ff66adb11d721da4bd92e648cb206c4a2bd"
33+
end
34+
35+
def install
36+
ENV.deparallelize
37+
38+
os = if OS.mac?
39+
"darwin"
40+
else
41+
"posix"
42+
end
43+
44+
system "make", "CC=#{ENV.cc}",
45+
"XCFLAGS=#{ENV.cflags}",
46+
"XLDFLAGS=#{ENV.ldflags}",
47+
"MANDIR=#{man}",
48+
"SYS=#{os}",
49+
"prefix=#{prefix}",
50+
"sbindir=#{bin}",
51+
"install"
52+
end
53+
54+
test do
55+
system bin/"rtmpdump", "-h"
56+
end
57+
end

0 commit comments

Comments
 (0)