homebrew-core/Formula/libdvdread.rb
Oleg Oshmyan edcdba4885 libdvdread: Update to 4.2.0
New homepage, HEAD URL, actually build against libdvdcss.

Closes Homebrew/homebrew#8500.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-09 11:24:23 -08:00

21 lines
617 B
Ruby

require 'formula'
class Libdvdread < Formula
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'
depends_on 'libdvdcss' => :optional
def install
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}"
system "make install"
end
end