aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorOleg Oshmyan2011-11-07 23:53:47 +0000
committerCharlie Sharpsteen2011-11-09 11:24:23 -0800
commit2591bece967c1da22882e7863331d381d2232f87 (patch)
tree1cdf9b6ac5321dc5f2fd277f9c894160f95c094b /Library/Formula
parent79ea3d8d66220a41eda59ef3faa9631d4bd78800 (diff)
downloadhomebrew-2591bece967c1da22882e7863331d381d2232f87.tar.bz2
libdvdread: Update to 4.2.0
New homepage, HEAD URL, actually build against libdvdcss. Closes #8500. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libdvdread.rb23
1 files changed, 11 insertions, 12 deletions
diff --git a/Library/Formula/libdvdread.rb b/Library/Formula/libdvdread.rb
index 9ed8a1e60..9eebf5362 100644
--- a/Library/Formula/libdvdread.rb
+++ b/Library/Formula/libdvdread.rb
@@ -1,22 +1,21 @@
require 'formula'
class Libdvdread < Formula
- homepage 'http://www.dtek.chalmers.se/groups/dvd/'
- # Official site is down; use a mirror.
- url 'http://www.mplayerhq.hu/MPlayer/releases/dvdnav-old/libdvdread-4.1.3.tar.bz2'
- md5 '6dc068d442c85a3cdd5ad3da75f6c6e8'
+ 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 patches
- # compatibility patch provided by dvdbackup
- "http://dvdbackup.sourceforge.net/DVDFileStat.patch"
- end
-
def install
- system "./autogen.sh"
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
+ 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