diff options
author | eddie-0815 <eddie-0815@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-01-09 20:02:01 +0000 |
---|---|---|
committer | eddie-0815 <eddie-0815@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-01-09 20:02:01 +0000 |
commit | 26dc68d67f6906c186912fbf00962f4aebe17d94 (patch) | |
tree | b456e8eb2899e160ed4d80198c9600451ae3e190 /Game/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh | |
parent | 269105ab3d8c4cad1d1f6156850b893d8ed24390 (diff) | |
download | usdx-26dc68d67f6906c186912fbf00962f4aebe17d94.tar.gz usdx-26dc68d67f6906c186912fbf00962f4aebe17d94.tar.xz usdx-26dc68d67f6906c186912fbf00962f4aebe17d94.zip |
Added readme and scripts for building and patching ffmpeg on OS X.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@762 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh')
-rwxr-xr-x | Game/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Game/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh b/Game/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh new file mode 100755 index 00000000..064d2ecc --- /dev/null +++ b/Game/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Copy dylibs: +cp ffmpeg/libavcodec/libavcodec.51.dylib ../../libavcodec.dylib +cp ffmpeg/libavformat/libavformat.52.dylib ../../libavformat.dylib +cp ffmpeg/libavutil/libavutil.49.dylib ../../libavutil.dylib + +# Patching libavcodec: +install_name_tool -id @executable_path/libavcodec.dylib ../../libavcodec.dylib +install_name_tool -change /usr/local/lib/libavutil.dylib @executable_path/libavutil.dylib ../../libavcodec.dylib + +# Patching libavformat: +install_name_tool -id @executable_path/libavformat.dylib ../../libavformat.dylib +install_name_tool -change /usr/local/lib/libavutil.dylib @executable_path/libavutil.dylib ../../libavformat.dylib +install_name_tool -change /usr/local/lib/libavcodec.dylib @executable_path/libavcodec.dylib ../../libavformat.dylib + +# Patching libavcodec: +install_name_tool -id @executable_path/libavutil.dylib ../../libavutil.dylib + +# Printing result: +otool -L ../../libavutil.dylib +otool -L ../../libavcodec.dylib +otool -L ../../libavformat.dylib
\ No newline at end of file |