[vlmc-devel] commit: Contribs: Contribs sh file for Mac OS (Rohit Yadav )

git at videolan.org git at videolan.org
Wed Nov 10 19:37:01 CET 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Thu Nov 11 00:40:11 2010 +0100| [68bcb78f50df787a31e9239467025b220e3ba7f5] | committer: Rohit Yadav 

Contribs: Contribs sh file for Mac OS

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=68bcb78f50df787a31e9239467025b220e3ba7f5
---

 contribs/contribs-mac.sh |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/contribs/contribs-mac.sh b/contribs/contribs-mac.sh
new file mode 100644
index 0000000..eeefb91
--- /dev/null
+++ b/contribs/contribs-mac.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+VLC_VERSION_DATE="20101110-0104"
+VLC_VERSION_PREFIX="1.1-branch-intel-${VLC_VERSION_DATE}"
+VLC_FILE="${VLC_VERSION_PREFIX}.zip"
+VLC_URL="http://nightlies.videolan.org/build/macosx-intel/${VLC_FILE}"
+FREI0R_FILE="frei0r-latest.tar.gz"
+FREI0R_URL="http://www.piksel.no/frei0r/snapshot/frei0r-latest.tar.gz"
+
+ROOT_FOLDER=`pwd`
+
+# Get the dependencies in this directory
+mkdir -p src-dl/
+cd src-dl/
+
+if [ ! -f $VLC_FILE ]; then
+    wget $VLC_URL ;
+else
+    echo "VLC OK";
+fi
+
+if [ ! -f $FREI0R_FILE ]; then
+    wget $FREI0R_URL ;
+else
+    echo "FREI0R OK";
+fi
+
+cd $ROOT_FOLDER
+mkdir temp
+
+# libvlc
+unzip src-dl/$VLC_FILE "vlc*/VLC.app/Contents/MacOS/*" -d temp
+
+cd temp/vlc*/VLC.app/Contents/MacOS/
+mv -fv include/ $ROOT_FOLDER
+mv -fv lib/ $ROOT_FOLDER
+mv -fv plugins/ $ROOT_FOLDER
+
+cd $ROOT_FOLDER
+
+# frei0r
+tar xvf src-dl/$FREI0R_FILE -C temp --strip-components=2
+cp temp/frei0r.h include
+rm -rf temp
\ No newline at end of file



More information about the Vlmc-devel mailing list