summaryrefslogtreecommitdiff
path: root/scripts/uni-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-01 02:37:08 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-01 02:37:08 (GMT)
commit01aaec33573a49705c9028966df2cbd15c9c4c61 (patch)
treeefd19899ab57f7ca7ca08c02d579e084171746c2 /scripts/uni-build-dependencies.sh
parent600893dd74ba241eb65722e929d847dc5b0c282f (diff)
copy qt4 building script from macosx-build-deps to linux
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-xscripts/uni-build-dependencies.sh32
1 files changed, 30 insertions, 2 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh
index 0c37605..6550dcc 100755
--- a/scripts/uni-build-dependencies.sh
+++ b/scripts/uni-build-dependencies.sh
@@ -24,7 +24,6 @@
#
# Prerequisites:
# - wget or curl
-# - Qt4
# - gcc
#
# Enable Clang (experimental, only works on linux):
@@ -42,6 +41,31 @@ printUsage()
echo
}
+build_qt4()
+{
+ version=$1
+ if [ -e $DEPLOYDIR/include/Qt ]; then
+ echo "qt already installed. not building"
+ return
+ fi
+ echo "Building Qt" $version "..."
+ cd $BASEDIR/src
+ rm -rf qt-everywhere-opensource-src-$version
+ if [ ! -f qt-everywhere-opensource-src-$version.tar.gz ]; then
+ curl -O http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-$version.tar.gz
+ fi
+ tar xzf qt-everywhere-opensource-src-$version.tar.gz
+ cd qt-everywhere-opensource-src-$version
+ ./configure -prefix $DEPLOYDIR -opensource -confirm-license -fast -no-qt3support -no-svg -no-phonon -no-audio-backend -no-multimedia -no-javascript-jit -no-script -no-scripttools -no-declarative -no-xmlpatterns -nomake demos -nomake examples -nomake docs -nomake translations -no-webkit
+ make -j $NUMCPU
+ make install
+ QTDIR=$DEPLOYDIR
+ export QTDIR
+ echo "----------"
+ echo " Please set QTDIR to $DEPLOYDIR ( or run '. scripts/setenv-unibuild.sh' )
+ echo "----------"
+}
+
build_bison()
{
version=$1
@@ -426,6 +450,11 @@ if [ $1 ]; then
build_opencsg 1.3.2
exit
fi
+ if [ $1 == "qt4" ]; then
+ # such a huge build, put here by itself
+ build_qt4 4.8.4
+ exit
+ fi
fi
@@ -433,7 +462,6 @@ fi
# Main build of libraries
# edit version numbers here as needed.
#
-
build_eigen 3.1.1
build_gmp 5.0.5
build_mpfr 3.1.1
contact: Jan Huwald // Impressum