#!/bin/bash
+## Some configuration variables
+number_of_processes="-j4"
+comp_type=-debug-and-release
+# particular_options=-no-framework
+
## Check input parameters and process inputs (if needed)
if [ "$#" -eq 1 ]; then
valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
cd $build_dir
$source_dir/configure \
-prefix ${HOME}/local \
- -release -opensource -shared -fast -no-webkit \
- -optimized-qmake -no-framework \
- -confirm-license yes
+ $comp_type \
+ -opensource -shared -fast \
+ -no-phonon \
+ -no-phonon-backend \
+ -no-webkit \
+ -no-openvg \
+ -nomake demos -nomake examples \
+ -optimized-qmake \
+ $particular_options \
+ -confirm-license
echo "Configuring sources... done."
echo "Compiling sources..."
cd $build_dir
-make
+make $number_of_processes
echo "Compiling sources... done."
echo "Installing package..."