2012-04-11 18:56:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libbluray < Formula
|
|
|
|
homepage 'http://www.videolan.org/developers/libbluray.html'
|
2014-01-25 21:10:21 +00:00
|
|
|
url 'ftp://ftp.videolan.org/pub/videolan/libbluray/0.5.0/libbluray-0.5.0.tar.bz2'
|
|
|
|
sha1 '1a9c61daefc31438f9165e7681c563d0524b2d3e'
|
2012-04-11 18:56:04 +00:00
|
|
|
|
2013-09-22 01:47:09 +00:00
|
|
|
head do
|
|
|
|
url 'git://git.videolan.org/libbluray.git'
|
2012-04-11 18:56:04 +00:00
|
|
|
|
2013-04-04 19:34:46 +00:00
|
|
|
depends_on :automake => :build
|
|
|
|
depends_on :autoconf => :build
|
|
|
|
depends_on :libtool => :build
|
|
|
|
end
|
2012-04-11 18:56:04 +00:00
|
|
|
|
2013-09-22 01:47:09 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-12-11 05:54:10 +00:00
|
|
|
depends_on :freetype => :recommended
|
2013-12-09 18:43:46 +00:00
|
|
|
|
2012-04-11 18:56:04 +00:00
|
|
|
def install
|
2013-04-04 19:34:46 +00:00
|
|
|
ENV.libxml2
|
|
|
|
|
2014-01-29 22:22:04 +00:00
|
|
|
args = %W[--prefix=#{prefix} --disable-dependency-tracking]
|
|
|
|
args << "--without-freetype" if build.without? "freetype"
|
|
|
|
|
2013-04-04 19:34:46 +00:00
|
|
|
system "./bootstrap" if build.head?
|
2014-01-29 22:22:04 +00:00
|
|
|
system "./configure", *args
|
2012-04-11 18:56:04 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|