/
libbluray.rb
45 lines (37 loc) 路 1.55 KB
/
libbluray.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class Libbluray < Formula
desc "Blu-Ray disc playback library for media players like VLC"
homepage "https://www.videolan.org/developers/libbluray.html"
url "https://download.videolan.org/pub/videolan/libbluray/0.9.2/libbluray-0.9.2.tar.bz2"
sha256 "efc994f42d2bce6af2ce69d05ba89dbbd88bcec7aca065de094fb3a7880ce7ea"
bottle do
cellar :any
revision 1
sha256 "256934cb0cb819bea7dc18ca3e307b3fa53877817a7aadc78bf956a8e6d2f0f7" => :el_capitan
sha256 "721af230aeca4ac6e17c6799c7dbf73b8f7f14128983e1d0c3eaa8d6a80894b5" => :yosemite
sha256 "ebcaf7958d95d7e6a616f8146f0034a75d4e68a65f0a1b1d192eff0a88404df4" => :mavericks
sha256 "cc6ec61dfab7f26ba47ddd5195c109dbc1c1f28726dc48147ed7a00e5d207f82" => :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
option "without-ant", "Disable Support for BD Java"
depends_on "pkg-config" => :build
depends_on "freetype" => :recommended
depends_on "fontconfig"
depends_on "ant" => [:build, :optional]
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"
args << "--disable-bdjava" if build.without? "ant"
system "./bootstrap" if build.head?
system "./configure", *args
system "make"
system "make", "install"
end
end