[vlmc-devel] contribs-mac: Gets Qt translation file for mac and copies it to the mac bundle

Rohit Yadav git at videolan.org
Thu Jul 28 11:22:04 CEST 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Thu Jul 28 15:07:24 2011 +0530| [51cb6578b54032373a472042ae59a3483b9b088b] | committer: Rohit Yadav

contribs-mac: Gets Qt translation file for mac and copies it to the mac bundle
allowing user to apply locale on qt gui elements.

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

 contribs/contribs-mac.sh |   11 +++++++++++
 src/CMakeLists.txt       |    2 +-
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/contribs/contribs-mac.sh b/contribs/contribs-mac.sh
index 21a4444..b412866 100644
--- a/contribs/contribs-mac.sh
+++ b/contribs/contribs-mac.sh
@@ -16,6 +16,8 @@ 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://dl.rohityadav.in/contribs/effects${VLC_ARCH}.zip"
+QT4_FILE="qt4-4.7.3-win32-bin.tar.bz2"
+QT4_URL="http://dl.rohityadav.in/contribs/qt4-4.7.3-win32-bin.tar.bz2"
 
 ROOT_FOLDER=`pwd`
 
@@ -41,6 +43,12 @@ else
     echo "FREI0R OK";
 fi
 
+if [ ! -f $QT4_FILE ]; then
+    curl -C - -O $QT4_URL ;
+else
+    echo "Qt4 OK";
+fi
+
 cd $ROOT_FOLDER
 mkdir temp
 
@@ -58,4 +66,7 @@ cd $ROOT_FOLDER
 tar xvf src-dl/$FREI0R_FILE -C temp --strip-components=2
 cp temp/frei0r.h include
 unzip src-dl/$FREI0R_EFFECTS_FILE
+
+# qt translations
+tar xvf src-dl/$QT4_FILE --wildcards qt4*/ts/*qm -C ts --strip-components=1
 rm -rf temp
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 134af23..944aba9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -390,7 +390,7 @@ IF( APPLE )
     ADD_CUSTOM_COMMAND(
         TARGET vlmc
         POST_BUILD
-        COMMAND cp -r ${CONTRIBS_DIR}/include ${CONTRIBS_DIR}/lib ${CONTRIBS_DIR}/plugins ${CONTRIBS_DIR}/effects ${CMAKE_CURRENT_BINARY_DIR}/../bin/vlmc.app/Contents/MacOS
+        COMMAND cp -r ${CONTRIBS_DIR}/include ${CONTRIBS_DIR}/lib ${CONTRIBS_DIR}/plugins ${CONTRIBS_DIR}/effects ${CONTRIBS_DIR}/ts ${CMAKE_CURRENT_BINARY_DIR}/../bin/vlmc.app/Contents/MacOS
     )
     ADD_CUSTOM_COMMAND(
         TARGET vlmc



More information about the Vlmc-devel mailing list