aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ffmpeg.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb
index 86bdc1779..2825b3475 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -4,6 +4,10 @@ def ffplay?
ARGV.include? '--with-ffplay'
end
+def openjpeg?
+ ARGV.include? '--with-openjpeg'
+end
+
class Ffmpeg < Formula
homepage 'http://ffmpeg.org/'
url 'http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.bz2'
@@ -26,11 +30,13 @@ class Ffmpeg < Formula
depends_on 'libass' => :optional
depends_on 'sdl' if ffplay?
+ depends_on 'openjpeg' if openjpeg?
def options
[
["--with-tools", "Install additional FFmpeg tools."],
- ["--with-ffplay", "Build ffplay."]
+ ["--with-ffplay", "Build ffplay."],
+ ["--with-openjpeg", "Use openjpeg for jpeg2000 support"]
]
end
@@ -58,6 +64,7 @@ class Ffmpeg < Formula
args << "--enable-libass" if Formula.factory('libass').linked_keg.exist?
args << "--enable-libvo-aacenc" if Formula.factory('libvo-aacenc').linked_keg.exist?
args << "--disable-ffplay" unless ffplay?
+ args << "--enable-libopenjpeg" if openjpeg?
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22