homebrew-core/Formula/libdvdread.rb

26 lines
654 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libdvdread < Formula
homepage 'http://dvdnav.mplayerhq.hu/'
url 'http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2'
2012-07-17 17:05:34 +00:00
sha1 '431bc92195f27673bfdd2be67ce0f58338da8d3b'
head 'svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread'
2011-03-21 20:35:53 +00:00
depends_on 'libdvdcss' => :optional
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
2011-03-21 20:35:53 +00:00
def install
if Formula.factory("libdvdcss").installed?
ENV.append "CFLAGS", "-DHAVE_DVDCSS_DVDCSS_H"
ENV.append "LDFLAGS", "-ldvdcss"
end
2012-07-17 17:05:34 +00:00
system "./autogen.sh", "--disable-dependency-tracking",
"--prefix=#{prefix}"
2011-03-21 20:35:53 +00:00
system "make install"
end
end