2010-02-21 09:45:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libdvdread < Formula
|
2011-11-07 23:53:47 +00:00
|
|
|
homepage 'http://dvdnav.mplayerhq.hu/'
|
|
|
|
url 'http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2'
|
|
|
|
head 'svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread'
|
|
|
|
md5 'ab7a19d3ab1a437ae754ef477d6231a4'
|
2010-02-21 09:45:50 +00:00
|
|
|
|
2011-03-21 20:35:53 +00:00
|
|
|
depends_on 'libdvdcss' => :optional
|
2010-10-29 22:01:44 +00:00
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
# when and if the tarball provides configure, remove autogen.sh and these deps
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-03-21 20:35:53 +00:00
|
|
|
def install
|
2011-11-07 23:53:47 +00:00
|
|
|
if Formula.factory("libdvdcss").installed?
|
|
|
|
ENV.append "CFLAGS", "-DHAVE_DVDCSS_DVDCSS_H"
|
|
|
|
ENV.append "LDFLAGS", "-ldvdcss"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./autogen.sh", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2011-03-21 20:35:53 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-02-21 09:45:50 +00:00
|
|
|
end
|