Skip to content

Commit

Permalink
libbluray 1.0.1
Browse files Browse the repository at this point in the history
Closes #14622.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Jun 15, 2017
1 parent af061fb commit fdaa256
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Formula/libbluray.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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/1.0.0/libbluray-1.0.0.tar.bz2"
sha256 "f7e3add335c7bbef45824fcd2249a9bf293868598c13f8479352c44ec95374cc"
url "https://download.videolan.org/pub/videolan/libbluray/1.0.1/libbluray-1.0.1.tar.bz2"
sha256 "0f9f9a1db2f48cafc70ed2596ff3594b597e2027408f5f2be6191c245d67853a"

bottle do
cellar :any
Expand All @@ -19,20 +19,17 @@ class Libbluray < Formula
depends_on "libtool" => :build
end

option "without-ant", "Disable Support for BD Java"

depends_on "ant" => :build
depends_on "pkg-config" => :build
depends_on "freetype" => :recommended
depends_on "fontconfig"
depends_on "ant" => [:build, :optional]
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"

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
Expand Down

0 comments on commit fdaa256

Please sign in to comment.