2012-04-11 18:56:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libbluray < Formula
|
|
|
|
homepage 'http://www.videolan.org/developers/libbluray.html'
|
2013-04-04 19:34:46 +00:00
|
|
|
url 'ftp://ftp.videolan.org/pub/videolan/libbluray/0.2.3/libbluray-0.2.3.tar.bz2'
|
|
|
|
sha1 '604396b6051cbdfc56e6009c893f7a95d9d9e020'
|
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
|
|
|
|
|
2012-04-11 18:56:04 +00:00
|
|
|
def install
|
2013-04-04 19:34:46 +00:00
|
|
|
ENV.libxml2
|
|
|
|
|
|
|
|
system "./bootstrap" if build.head?
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
2012-04-11 18:56:04 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|