parent
d97824deee
commit
d6a50dab27
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue