40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
require "formula"
|
|
|
|
class Libbluray < Formula
|
|
homepage "https://www.videolan.org/developers/libbluray.html"
|
|
url "ftp://ftp.videolan.org/pub/videolan/libbluray/0.6.2/libbluray-0.6.2.tar.bz2"
|
|
sha1 "a1ab8c8c9310680fb1fe6a58f9fc5430613600fe"
|
|
|
|
bottle do
|
|
cellar :any
|
|
revision 1
|
|
sha1 "a223bd0799d7dc26a05ad0d5751569c4964c248e" => :yosemite
|
|
sha1 "050786aa8393d98e0e72249f4933efa590c69a17" => :mavericks
|
|
sha1 "9170f553e8df68758d0ccddea706b1b2b0e16109" => :mountain_lion
|
|
end
|
|
|
|
head do
|
|
url "git://git.videolan.org/libbluray.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "freetype" => :recommended
|
|
|
|
def install
|
|
# https://mailman.videolan.org/pipermail/libbluray-devel/2014-April/001401.html
|
|
ENV.append_to_cflags "-D_DARWIN_C_SOURCE"
|
|
ENV.libxml2
|
|
|
|
args = %W[--prefix=#{prefix} --disable-dependency-tracking]
|
|
args << "--without-freetype" if build.without? "freetype"
|
|
|
|
system "./bootstrap" if build.head?
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|