]> Creatis software - cpPlugins.git/blobdiff - third_party_installers/cpPlugins_Install_QT4.sh
...
[cpPlugins.git] / third_party_installers / cpPlugins_Install_QT4.sh
index b8da6680a7287d458ae6933f95aea1e5fa8b4dd4..3db6ae5594c412c289f9aa01e185c449875cbf0a 100755 (executable)
@@ -31,7 +31,7 @@ if [ "$platform" == "Darwin" ]; then
 fi
 
 ## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 2 ]; then
+if [ "$#" -eq 3 ]; then
     valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
     actual_ext=""
     for ext in ${valid_extensions[@]}; do
@@ -69,12 +69,14 @@ if [ "$#" -eq 2 ]; then
     fi
     echo "done!"
     build_type=$2
-elif [ "$#" -eq 3 ]; then
+    full_compil=$3
+elif [ "$#" -eq 4 ]; then
     source_dir=`dirname $1`
     build_dir=`dirname $2`
     build_type=$3
+    full_compil=$4
 else
-    echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir] [build_type]
+    echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir] [build_type] [min/full]"
 fi
 
 # Apply patch
@@ -90,18 +92,29 @@ echo "Given build dir  : \"$build_dir\""
 
 echo "Configuring sources... "
 cd $build_dir
-$source_dir/configure \
-    -prefix ${HOME}/local \
-    $build_type \
-    -opensource -shared -fast \
-    -no-phonon \
-    -no-phonon-backend \
-    -no-webkit \
-    -no-openvg \
-    -nomake demos -nomake examples \
-    -optimized-qmake \
-    $particular_options \
-    -confirm-license
+if [ "x$full_compil" == "xfull" ]; then
+    $source_dir/configure \
+        -prefix ${HOME}/local \
+        $build_type \
+        -opensource -shared -fast \
+        -no-webkit \
+        -optimized-qmake \
+        $particular_options \
+        -confirm-license
+else
+    $source_dir/configure \
+        -prefix ${HOME}/local \
+        $build_type \
+        -opensource -shared -fast \
+        -no-phonon \
+        -no-phonon-backend \
+        -no-webkit \
+        -no-openvg \
+        -nomake demos -nomake examples \
+        -optimized-qmake \
+        $particular_options \
+        -confirm-license
+fi
 echo "Configuring sources... done."
 
 echo "Compiling sources..."