Annotation of /trunk/deprecated/qwt5/qwt5-5.2.3-r1.smage2
Parent Directory | Revision Log
Revision 16042 -
(hide annotations)
(download)
Mon Jan 21 14:47:56 2013 UTC (11 years, 8 months ago) by niro
File size: 1760 byte(s)
Mon Jan 21 14:47:56 2013 UTC (11 years, 8 months ago) by niro
File size: 1760 byte(s)
-moved to 'deprecated'
1 | niro | 16037 | # $Id$ |
2 | |||
3 | PNAME="qwt5" | ||
4 | PVER="5.2.3" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="sci-libs" | ||
8 | |||
9 | DESCRIPTION="Qwt5 - Qt Widgets for Technical Applications." | ||
10 | HOMEPAGE="http://qwt.sourceforge.net/" | ||
11 | |||
12 | DEPEND=">= x11-libs/qt4-core-4.8 | ||
13 | >= x11-libs/qt4-gui-4.8 | ||
14 | >= x11-libs/qt4-svg-4.8" | ||
15 | |||
16 | SRCFILE="${PNAME/5/}-${PVER}.tar.bz2" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME/5/}-${PVER}" | ||
18 | |||
19 | niro | 16041 | sminclude qt4 mbuild mtools |
20 | niro | 16037 | |
21 | SRC_URI=( | ||
22 | sourceforge://${PNAME/5/}/${SRCFILE} | ||
23 | mirror://${PNAME/5/}/${SRCFILE} | ||
24 | ) | ||
25 | |||
26 | UP2DATE="updatecmd_sourceforge ${PNAME}" | ||
27 | |||
28 | src_prepare() | ||
29 | { | ||
30 | munpack ${SRCFILE} || die | ||
31 | cd ${SRCDIR} | ||
32 | |||
33 | # use versionized include dirs to not conflict with qwt pkg! | ||
34 | cat > qwtconfig.pri <<-EOF | ||
35 | niro | 16039 | target.path = /usr/$(mlibdir) |
36 | headers.path = /usr/include/qwt${PVER:0:1} | ||
37 | doc.path = /usr/share/doc/${PNAME}-${PVER} | ||
38 | CONFIG += qt warn_on thread release | ||
39 | CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner | ||
40 | niro | 16037 | VERSION = ${PVER} |
41 | EOF | ||
42 | |||
43 | # don't build examples - fix the qt files to build once installed | ||
44 | cat > examples/examples.pri <<-EOF | ||
45 | include( qwtconfig.pri ) | ||
46 | TEMPLATE = app | ||
47 | MOC_DIR = moc | ||
48 | INCLUDEPATH += /usr/include/qwt${PVER:0:1} | ||
49 | DEPENDPATH += /usr/include/qwt${PVER:0:1} | ||
50 | LIBS += -lqwt | ||
51 | EOF | ||
52 | sed -i 's:../qwtconfig:qwtconfig:' examples/examples.pro || die | ||
53 | sed -i 's/headers doc/headers/' src/src.pro || die | ||
54 | sed -i 's/target doc/target/' src/src.pro || die | ||
55 | cp *.pri examples/ || die | ||
56 | } | ||
57 | |||
58 | src_compile() | ||
59 | { | ||
60 | cd ${SRCDIR} | ||
61 | ${QMAKE} || die | ||
62 | # not parallel-safe, split make | ||
63 | mmake sub-src || die | ||
64 | mmake || die | ||
65 | } | ||
66 | |||
67 | src_install() | ||
68 | { | ||
69 | cd ${SRCDIR} | ||
70 | mmake INSTALL_ROOT=${BINDIR} install || die | ||
71 | minstalldocs CHANGES COPYING README || die | ||
72 | niro | 16040 | |
73 | # fix duplicate files | ||
74 | mdelete /usr/$(mlibdir)/libqwt.so || die | ||
75 | mv -v ${BINDIR}/usr/$(mlibdir)/qt/plugins/designer/libqwt{,${PVER:0:1}}_designer_plugin.so || die | ||
76 | niro | 16037 | } |