Thu 26 Mar 2015 16:13:20 CET

This is ffmpeg 2.6.1 "Grothendieck", downloaded from:
https://www.ffmpeg.org/releases/ffmpeg-2.6.1.tar.bz2

Compiled on Mac OS X Lion with XCode 4.3.3.

First I downloaded, built and installed yasm 1.3.0.

export MACOSX_DEPLOYMENT_TARGET=10.6
export CFLAGS="-arch i386 -mmacosx-version-min=10.6"
export CXXFLAGS="-arch i386 -mmacosx-version-min=10.6"
export LDFLAGS="-arch i386 -mmacosx-version-min=10.6"
./configure --enable-pic --disable-amd3dnow --disable-debug --disable-doc --disable-programs --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/
make
mkdir dest32
make install DESTDIR=`pwd`/dest32/

make clean

export CFLAGS="-arch x86_64 -mmacosx-version-min=10.6"
export CXXFLAGS="-arch x86_64 -mmacosx-version-min=10.6"
export LDFLAGS="-arch x86_64 -mmacosx-version-min=10.6"
./configure --enable-pic --disable-amd3dnow --disable-debug --disable-doc --disable-programs --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/
make
mkdir dest64
make install DESTDIR=`pwd`/dest64/

# Combining the libraries:
mkdir -p $THIRDPARTY/darwin-libs-a/ffmpeg/lib
for lib in avcodec avdevice avfilter avformat avutil swresample swscale; do
    lipo -create -output $THIRDPARTY/darwin-libs-a/ffmpeg/lib/lib$lib.a -arch i386 dest32/usr/local/lib/lib$lib.a -arch x86_64 dest64/usr/local/lib/lib$lib.a
done
mkdir -p $THIRDPARTY/darwin-libs-a/ffmpeg/include
cp -r dest32/usr/local/include/ $THIRDPARTY/darwin-libs-a/ffmpeg/include/

License is LGPL, see LICENSE.md (GPL code has not been enabled).

~rdb
