aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/lib')
-rw-r--r--Game/Code/lib/ffmpeg/src/MacOSX/MacOSXReadMe.txt23
-rwxr-xr-xGame/Code/lib/ffmpeg/src/MacOSX/build_ffmpeg.sh6
-rwxr-xr-xGame/Code/lib/ffmpeg/src/MacOSX/copy_and_patch_dylibs.sh23
3 files changed, 52 insertions, 0 deletions
diff --git a/Game/Code/lib/ffmpeg/src/MacOSX/MacOSXReadMe.txt b/Game/Code/lib/ffmpeg/src/MacOSX/MacOSXReadMe.txt
new file mode 100644
index 00000000..59e54e04
--- /dev/null
+++ b/Game/Code/lib/ffmpeg/src/MacOSX/MacOSXReadMe.txt
@@ -0,0 +1,23 @@
+
+How to download an build ffmpeg for UltraStar Deluxe on Mac OS X:
+
+1. Open a terminal.
+
+2. cd into the Game/Code/lib/ffmpeg/src/MacOSX directory
+
+3. Run the following command:
+
+svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
+
+4. The compile ffmpeg. I made a script for this:
+
+./build_ffmpeg.sh
+
+5. On OS X you have to patch the the dylibs. Run the following
+ script. It patches the dylibs and copies them to the
+ lib/ffmpeg dir:
+
+./copy_and_patch_dylibs.sh
+
+
+You're done.
diff --git a/Game/Code/lib/ffmpeg/src/MacOSX/build_ffmpeg.sh b/Game/Code/lib/ffmpeg/src/MacOSX/build_ffmpeg.sh
new file mode 100755
index 00000000..bcb3ca1e
--- /dev/null
+++ b/Game/Code/lib/ffmpeg/src/MacOSX/build_ffmpeg.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+cd ffmpeg
+./configure --enable-shared --disable-static --disable-mmx
+make
+
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