]> Creatis software - cpPlugins.git/blobdiff - third_party_installers/cpPlugins_Install_QT4.sh
...
[cpPlugins.git] / third_party_installers / cpPlugins_Install_QT4.sh
index 76fdddeccf9183ec4b71b77e14e13a3ec162d30d..b8da6680a7287d458ae6933f95aea1e5fa8b4dd4 100755 (executable)
@@ -22,8 +22,12 @@ function abspath()
 number_of_processes="-j4"
 platform=`uname`
 particular_options=""
+patch_file=""
 if [ "$platform" == "Darwin" ]; then
     particular_options=-no-framework
+    bash_path=`abspath $0`
+    bash_dir=`dirname $bash_path`
+    patch_file=$bash_dir/qt-4.8.6.patch
 fi
 
 ## Check input parameters and process inputs (if needed)
@@ -73,6 +77,14 @@ else
     echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir] [build_type]" 
 fi
 
+# Apply patch
+if [ "x$patch_file" != "x" ]; then
+    echo -n "Applying patch... "
+    cd $source_dir
+    patch -p0 < $patch_file
+    echo "done."
+fi
+
 echo "Given source dir : \"$source_dir\""
 echo "Given build dir  : \"$build_dir\""