aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libdvdnav.rb
blob: 2888a2df70a65444198ee8b33d8b94d1653dfee9 (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
class Libdvdnav < Formula
  homepage "https://dvdnav.mplayerhq.hu/"
  url "https://download.videolan.org/pub/videolan/libdvdnav/5.0.3/libdvdnav-5.0.3.tar.bz2"
  sha256 "5097023e3d2b36944c763f1df707ee06b19dc639b2b68fb30113a5f2cbf60b6d"

  head do
    url "git://git.videolan.org/libdvdnav.git"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  bottle do
    cellar :any
    sha1 "c99a864651ceff870b4a5826c80b6ef88ad8671d" => :yosemite
    sha1 "30322b1a670e188773fea56f23604e02679530f8" => :mavericks
    sha1 "c34ab3283adfcc429dbecebec5251a57ffd88a61" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "libdvdread"

  def install
    system "autoreconf", "-if" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end
end