From d3c3d4df471fd13b20141ba87ab7fbcad4eec9a7 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 13 Apr 2011 14:02:06 +0000
Subject: [PATCH] support AMR encoder.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45386 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/ffmpeg.cfg | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/buildout/software-profiles/ffmpeg.cfg b/buildout/software-profiles/ffmpeg.cfg
index 22a88f74d5..69b901b2b5 100644
--- a/buildout/software-profiles/ffmpeg.cfg
+++ b/buildout/software-profiles/ffmpeg.cfg
@@ -62,6 +62,13 @@ md5sum = 8e9866ad6b570c6c95c8cba48060473f
 configure-options =
   --disable-gtktest
 
+[opencore-amr]
+recipe = hexagonit.recipe.cmmi
+url = http://prdownloads.sourceforge.net/opencore-amr/opencore-amr/opencore-amr-0.1.2.tar.gz
+md5sum = 8e8b8b253eb046340ff7b6bf7a6ccd3e
+configure-options =
+  --disable-static
+
 [ffmpeg-0.6]
 recipe = hexagonit.recipe.cmmi
 url = http://www.ffmpeg.org/releases/ffmpeg-0.6.2.tar.bz2
@@ -76,11 +83,13 @@ configure-options =
  --enable-libvpx
  --enable-libx264
  --enable-libmp3lame
+ --enable-libopencore-amrnb
+ --enable-libopencore-amrwb
  --enable-shared
  --enable-zlib
  --disable-static
  --extra-ldflags="-Wl,-rpath -Wl,${buildout:parts-directory}/${:_buildout_section_name_}/lib"
 environment = 
-  CPPFLAGS=-I${bzip2:location}/include -I${libogg:location}/include -I${libvorbis:location}/include -I${libtheora:location}/include -I${libvpx:location}/include -I${libx264:location}/include -I${lame:location}/include -I${zlib:location}/include
-  LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath -Wl,${bzip2:location}/lib -L${libogg:location}/lib -Wl,-rpath -Wl,${libogg:location}/lib -L${libvorbis:location}/lib -Wl,-rpath -Wl,${libvorbis:location}/lib -L${libtheora:location}/lib -Wl,-rpath -Wl,${libtheora:location}/lib -L${libvpx:location}/lib -Wl,-rpath -Wl,${libvpx:location}/lib -L${libx264:location}/lib -Wl,-rpath -Wl,${libx264:location}/lib -L${lame:location}/lib -Wl,-rpath -Wl,${lame:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
+  CPPFLAGS=-I${bzip2:location}/include -I${libogg:location}/include -I${libvorbis:location}/include -I${libtheora:location}/include -I${libvpx:location}/include -I${libx264:location}/include -I${lame:location}/include -I${opencore-amr:location}/include -I${zlib:location}/include
+  LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath -Wl,${bzip2:location}/lib -L${libogg:location}/lib -Wl,-rpath -Wl,${libogg:location}/lib -L${libvorbis:location}/lib -Wl,-rpath -Wl,${libvorbis:location}/lib -L${libtheora:location}/lib -Wl,-rpath -Wl,${libtheora:location}/lib -L${libvpx:location}/lib -Wl,-rpath -Wl,${libvpx:location}/lib -L${libx264:location}/lib -Wl,-rpath -Wl,${libx264:location}/lib -L${lame:location}/lib -Wl,-rpath -Wl,${lame:location}/lib -L${opencore-amr:location}/lib -Wl,-rpath -Wl,${opencore-amr:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
   PATH=${yasm:location}/bin:%(PATH)s
-- 
2.30.9