Permalink
Browse files

libbluray: allow disabling BD Java.

Closes Homebrew/legacy-homebrew#43242.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information...
Frizlab authored and MikeMcQuaid committed Aug 24, 2015
1 parent 378ceab commit 5d2a2579f4415d55a594ef4f3e1c6cf746ebc75e
Showing with 4 additions and 1 deletion.
  1. +4 −1 Formula/libbluray.rb
View
@@ -19,10 +19,12 @@ class Libbluray < Formula
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
depends_on "ant" => [:build, :optional]
def install
# https://mailman.videolan.org/pipermail/libbluray-devel/2014-April/001401.html
@@ -31,6 +33,7 @@ def install
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

0 comments on commit 5d2a257

Please sign in to comment.