aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rtmpdump.rb
blob: 3d2cf829d06eefd5220d562fc5913c6a08e7eae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'formula'

# Use a newer version instead of the upstream tarball:
# http://livestreamer.tanuki.se/en/latest/issues.html#installed-rtmpdump-does-not-support-jtv-argument
class Rtmpdump < Formula
  homepage 'http://rtmpdump.mplayerhq.hu'
  url 'http://ftp.de.debian.org/debian/pool/main/r/rtmpdump/rtmpdump_2.4+20131018.git79459a2.orig.tar.gz'
  version '2.4+20131018'
  sha1 '17decff9d16bbcf45f622ca8ee2400c46c277500'
  revision 1

  bottle do
    cellar :any
    revision 2
    sha1 "3b5e1371a7d7723f8e57357b065e8fb2bfe4dbd8" => :yosemite
    sha1 "0ad29a01ac270a96df4d2e17a2ac1d3a4fb66e17" => :mavericks
    sha1 "f6c770535685b2f8a7ded4e07919a1f788e5661c" => :mountain_lion
  end

  head "git://git.ffmpeg.org/rtmpdump"

  depends_on 'openssl'

  fails_with :llvm do
    build 2336
    cause "Crashes at runtime"
  end

  def install
    ENV.deparallelize
    system "make", "CC=#{ENV.cc}",
                   "XCFLAGS=#{ENV.cflags}",
                   "XLDFLAGS=#{ENV.ldflags}",
                   "MANDIR=#{man}",
                   "SYS=darwin",
                   "prefix=#{prefix}",
                   "sbindir=#{bin}",
                   "install"
  end
end