-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-qwt-qt4
More file actions
executable file
·38 lines (31 loc) · 880 Bytes
/
build-qwt-qt4
File metadata and controls
executable file
·38 lines (31 loc) · 880 Bytes
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
#!/bin/bash
PKG=qwt-5.2.0
pushd ../SOURCES
if [ ! -f $PKG.tar.bz2 ]; then
wget http://prdownloads.sf.net/qwt/$PKG.tar.bz2
fi
popd
pushd ../BUILD
rm -rf $PKG
tar xfj ../SOURCES/$PKG.tar.bz2
pushd $PKG
# patch the configuration
perl -pi -e 's|release|debug|g' qwtconfig.pri
perl -pi -e 's|INSTALLBASE/lib|\[QT_INSTALL_PREFIX\]/lib|g' qwtconfig.pri
perl -pi -e 's|INSTALLBASE/include|\[QT_INSTALL_PREFIX\]/include/qwt|g' qwtconfig.pri
perl -pi -e 's|INSTALLBASE/doc|\[QT_INSTALL_PREFIX\]/doc/qwt|g' qwtconfig.pri
perl -pi -e 's|INSTALLBASE/doc|\[QT_INSTALL_PREFIX\]/doc/qwt|g' qwtconfig.pri
cat >> qwtconfig.pri <<EOF
CONFIG += QwtSVGItem
EOF
# library
(cd src && qmake && make && make install)
# examples
(cd examples && qmake && make)
# designer
(cd designer && qmake && make && make install)
popd # $PKG
popd # ../BUILD
# Local Variables: ***
# mode: sh ***
# End: ***