[vlmc-devel] contribs: update contribs for mac osx

Rohit Yadav git at videolan.org
Fri Aug 24 23:50:14 CEST 2012


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Sat Aug 25 03:36:55 2012 +0530| [8ff94ea7d82f41b29a761fea4d3e13bf55935e07] | committer: Rohit Yadav

contribs: update contribs for mac osx

Build works on Mac OSX 10.8 based on LibVLC 1.1.9

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

 contribs/contribs-mac.sh |   39 +++++++++++++++++----------------------
 1 file changed, 17 insertions(+), 22 deletions(-)

diff --git a/contribs/contribs-mac.sh b/contribs/contribs-mac.sh
index 4a32608..7267330 100644
--- a/contribs/contribs-mac.sh
+++ b/contribs/contribs-mac.sh
@@ -1,41 +1,36 @@
 #!/bin/sh
 
-set -e
+set -x
+echo "Contribs configured for intel-universal builds"
 
-VLC_ARCH=""
-VLC_BUILD_ID="0109"
-if [ `uname -m` != "i386" ]; then
-    VLC_ARCH="64";
-    VLC_BUILD_ID="0210";
-fi
-echo "Contribs configured for" `uname -m` "architecture"
+LIBVLC_VERSION="1.1.9"
+LIBVLC_VERSION_PREFIX="libvlc-${LIBVLC_VERSION}-macosx"
+LIBVLC_FILE="${LIBVLC_VERSION_PREFIX}.zip"
+LIBVLC_URL="http://bhaisaab.org/contribs/${LIBVLC_FILE}"
 
-VLC_VERSION_DATE="20110719-${VLC_BUILD_ID}"
-VLC_VERSION_PREFIX="1.1-branch-intel${VLC_ARCH}-${VLC_VERSION_DATE}"
-VLC_FILE="${VLC_VERSION_PREFIX}.zip"
-VLC_URL="http://nightlies.videolan.org/build/macosx-intel/${VLC_FILE}"
 FREI0R_FILE="frei0r-plugins-1.2.1.tar.gz"
 FREI0R_URL="http://www.piksel.no/frei0r/releases/frei0r-plugins-1.2.1.tar.gz"
-FREI0R_EFFECTS_FILE="effects${VLC_ARCH}.zip"
-FREI0R_EFFECTS_URL="http://rohityadav.in/files/contribs/effects${VLC_ARCH}.zip"
+FREI0R_EFFECTS_FILE="frei0r-effects-macosx.zip"
+FREI0R_EFFECTS_URL="http://bhaisaab.org/contribs/frei0r-effects-macosx.zip"
+
 QT4_FILE="qt4-4.8-win32-bin.tar.bz2"
-QT4_URL="http://rohityadav.in/files/contribs/qt4-4.8-win32-bin.tar.bz2"
+QT4_URL="http://bhaisaab.org/contribs/${QT4_FILE}"
 
 ROOT_FOLDER=`pwd`
 
 if [ -z `which lrelease` ]; then
     echo "The process require lrelease built in Qt !!!";
-    exit 1;
+#    exit 1;
 fi
 
 # Get the dependencies in this directory
 mkdir -p src-dl/
 cd src-dl/
 
-if [ ! -f $VLC_FILE ]; then
-    curl -C - -O $VLC_URL ;
+if [ ! -f $LIBVLC_FILE ]; then
+    curl -C - -O $LIBVLC_URL ;
 else
-    echo "VLC OK";
+    echo "LIBVLC OK";
 fi
 
 if [ ! -f $FREI0R_FILE ]; then
@@ -60,9 +55,9 @@ cd $ROOT_FOLDER
 mkdir temp
 
 # libvlc
-unzip src-dl/$VLC_FILE "vlc*/VLC.app/Contents/MacOS/*" -d temp
+unzip src-dl/$LIBVLC_FILE "libvlc*" -d temp
 
-cd temp/vlc*/VLC.app/Contents/MacOS/
+cd temp/libvlc-mac/
 mv -fv include/ $ROOT_FOLDER
 mv -fv lib/ $ROOT_FOLDER
 mv -fv plugins/ $ROOT_FOLDER
@@ -71,7 +66,7 @@ cd $ROOT_FOLDER
 
 # frei0r
 tar xvf src-dl/$FREI0R_FILE -C temp --strip-components=2
-cp temp/frei0r.h include
+cp temp/frei0r.h include/
 unzip src-dl/$FREI0R_EFFECTS_FILE
 
 # qt translations



More information about the Vlmc-devel mailing list