aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-11-01 01:40:51 -0700
committerAdam Vandenberg2012-11-01 07:47:14 -0700
commit628a87568bb8f1a584d426306f38aaaee751061b (patch)
tree066e4b445a723ab22a9170c9bdad672eac0b6946 /Library/Formula
parentb4aadae5b4f8c1df20935b8cbb06363f60763c81 (diff)
downloadhomebrew-628a87568bb8f1a584d426306f38aaaee751061b.tar.bz2
ffmpeg: fix for openjpeg + dep for Dirac
- Add `--extra-cflags` using pkg-config to find openjpeg. - The cflags fix a configure error. - Add an option `with-schroedinger` for Dirac Video Fixes #15772 Fixes #15734 Closes #15791. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-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 e690e8538..3a242f33b 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -21,6 +21,7 @@ class Ffmpeg < Formula
option "with-libvo-aacenc", "Enable VisualOn AAC encoder"
option "with-libass", "Enable ASS/SSA subtitle format"
option "with-openjpeg", 'Enable JPEG 200 image format'
+ option 'with-shroedinger', 'Enable Dirac video format'
option 'with-ffplay', 'Enable FFPlay media player'
option 'with-tools', 'Enable additional FFmpeg tools'
@@ -46,6 +47,7 @@ class Ffmpeg < Formula
depends_on 'openjpeg' if build.include? 'with-openjpeg'
depends_on 'sdl' if build.include? 'with-ffplay'
depends_on 'speex' if build.include? 'with-speex'
+ depends_on 'shroedinger' if build.include? 'with-shroedinger'
def install
args = ["--prefix=#{prefix}",
@@ -72,9 +74,14 @@ class Ffmpeg < Formula
args << "--enable-libopencore-amrnb" << "--enable-libopencore-amrwb" if build.include? 'with-opencore-amr'
args << "--enable-libvo-aacenc" if build.include? 'with-libvo-aacenc'
args << "--enable-libass" if build.include? 'with-libass'
- args << "--enable-libopenjpeg" if build.include? 'with-openjpeg'
args << "--enable-ffplay" if build.include? 'with-ffplay'
args << "--enable-libspeex" if build.include? 'with-speex'
+ args << '--enable-libschroedinger' if build.include? 'with-schroedinger'
+
+ if build.include? 'with-openjpeg'
+ args << '--enable-libopenjpeg'
+ args << '--extra-cflags=' + %x[pkg-config --cflags libopenjpeg].chomp
+ end
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22