aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/openrtsp.rb
blob: 0b4aeb99496355f7a6e3611c68ec889db9786d50 (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
require 'formula'

class Openrtsp < Formula
  homepage 'http://www.live555.com/openRTSP'
  url 'http://www.live555.com/liveMedia/public/live.2014.03.25.tar.gz'
  sha1 'cca0b497867e0dac4bf64647d24b6c5e53029270'

  bottle do
    cellar :any
    sha1 "21d6d05d03ecc8b563138bd35160d0aa90dcf29d" => :mavericks
    sha1 "2bd52bbadecc80025ed6c51e48aac06d0ce85aef" => :mountain_lion
    sha1 "714197f600b197b8e573a8c4983f8090fec30e0b" => :lion
  end

  option "32-bit"

  def install
    if build.build_32_bit? || !MacOS.prefer_64_bit?
      ENV.m32
      system "./genMakefiles macosx-32bit"
    else
      system "./genMakefiles macosx"
    end

    system "make", "PREFIX=#{prefix}", "install"
  end
end