aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/openrtsp.rb
blob: b86f577144a04e6f306f9c73478ed5ae1c247867 (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.10.21.tar.gz'
  sha1 'e493e0d6f7f2bf4be8e88393bb3ba583136bb271'

  bottle do
    cellar :any
    sha1 "01a5a2676e3995e505fc092ca949b67691f2e812" => :yosemite
    sha1 "f019de571028a7fa0027a2f4e464651e5a5259f9" => :mavericks
    sha1 "ee10c6dd74631ae656f4482380a1ec81c86e779d" => :mountain_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