summaryrefslogtreecommitdiffstats
path: root/thirdparties/mac/include/srtp/osx-x264.sh
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
committerMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
commit631fffee8a28b1bec5ed1f1d26a20e0135967f99 (patch)
tree74afe3bf3efe15aa82bcd0272b2b0f4d48c2d837 /thirdparties/mac/include/srtp/osx-x264.sh
parent7908865936604036e6f200f1b5e069f8752f3a3a (diff)
downloaddoubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip
doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz
-
Diffstat (limited to 'thirdparties/mac/include/srtp/osx-x264.sh')
-rw-r--r--thirdparties/mac/include/srtp/osx-x264.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/thirdparties/mac/include/srtp/osx-x264.sh b/thirdparties/mac/include/srtp/osx-x264.sh
new file mode 100644
index 0000000..88c0fc2
--- /dev/null
+++ b/thirdparties/mac/include/srtp/osx-x264.sh
@@ -0,0 +1,44 @@
+echo ""
+echo "----------------------------------------------------"
+echo "-- Building x264 for MAC OS X"
+echo "-- Example: $0 i386"
+echo "-- Valid parameters: i386 x86_64 ppc"
+echo "-- Location: copy this file in x264 root directory"
+echo "-- Git URL: git://git.videolan.org/x264.git"
+echo "-- Git date: Wed Aug 10 00:16:46 2011 -070"
+echo "--"
+echo ""
+
+if [ "$1" == "i386" ]; then
+ export ARCH="i386"
+ export CFLAGS=$CFLAGS" -arch $ARCH"
+ export LDFLAGS=$LDFLAGS" -arch $ARCH"
+ export HOST="$ARCH-apple-darwin"
+elif [ "$1" == "x86_64" ]; then
+ export ARCH="x86_64"
+ export CFLAGS=$CFLAGS" -arch $ARCH"
+ export LDFLAGS=$LDFLAGS" -arch $ARCH"
+ export HOST="$ARCH-apple-darwin"
+elif [ "$1" == "ppc" ]; then
+ export ARCH="ppc"
+ export CFLAGS=$CFLAGS" -arch $ARCH"
+ export LDFLAGS=$LDFLAGS" -arch $ARCH"
+ export HOST="$ARCH-apple-darwin"
+else
+ echo "\n=ERROR: '$1' is not a valid architecture\n"
+ exit 1
+fi
+
+export HOME="$( cd "$( dirname "$0" )" && pwd )"
+export PREFIX=$HOME"/"$ARCH
+
+echo "PREFIX="$PREFIX
+
+echo "Start building...\n\n"
+
+$HOME/configure --prefix=$PREFIX --host=$HOST --enable-static --extra-cflags="$CFLAGS" --extra-ldflags="$LDFLAGS" --disable-cli
+
+make clean && make && make install
+
+#mv ./x264.h $PREFIX/include/x264.h
+#mv ./libx264.a $PREFIX/lib/libx264.a \ No newline at end of file
OpenPOWER on IntegriCloud