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

class Libdvdread < Formula
  homepage 'http://dvdnav.mplayerhq.hu/'
  url 'http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2'
  sha1 '431bc92195f27673bfdd2be67ce0f58338da8d3b'

  head 'svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread'

  depends_on 'libdvdcss' => :optional

  depends_on :automake
  depends_on :libtool

  def install
    if Formula.factory("libdvdcss").installed?
      ENV.append "CFLAGS", "-DHAVE_DVDCSS_DVDCSS_H"
      ENV.append "LDFLAGS", "-ldvdcss"
    end

    system "./autogen.sh", "--disable-dependency-tracking",
                           "--prefix=#{prefix}"
    system "make install"
  end
end