File: Mac-StaticQt.sh

package info (click to toggle)
imagevis3d 2.0.1-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,872 kB
  • sloc: cpp: 53,586; sh: 788; ansic: 292; xml: 258; python: 35; makefile: 16
file content (41 lines) | stat: -rwxr-xr-x 828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

VERSION=4.5.3
echo "Removing old build..."
rm -fr qt-all-opensource-src-${VERSION}

tarball="qt-all-opensource-src-${VERSION}.tar"
echo "Extracting..."
# Do they have a bzip'd or a gzip'd tarball?
if test -f ${tarball}.bz2 ; then
    tar jxf ${tarball}.bz2
else
    tar zxf ${tarball}.gz
fi
pushd qt-all-opensource-src-${VERSION} || exit 1
echo "yes" | \
./configure \
        -prefix ${HOME}/sw \
        -opensource \
        -static \
        -qt-libjpeg \
        -no-openssl \
        -no-qt3support \
        -no-phonon \
        -no-webkit \
        -release \
        -no-sql-sqlite \
        -qt-gif \
        -no-framework \
        -make libs \
        -make tools

if test $? -ne 0; then
        echo "configure failed"
        exit 1
fi

nice make -j4 sub-src || exit 1
nice make install || exit 1

popd