Magellan Linux

Contents of /trunk/extras/qwt/qwt-5.2.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4930 - (show annotations) (download)
Wed Feb 17 10:06:36 2010 UTC (14 years, 3 months ago) by niro
File size: 1436 byte(s)
auto added: ver bump to 5.2.0-r1
1 # $Id$
2
3 PNAME="qwt"
4 PVER="5.2.0"
5 PBUILD="r1"
6
7 PCATEGORIE="sci-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Qwt - Qt Widgets for Technical Applications."
11 HOMEPAGE="http://qwt.sourceforge.net/"
12
13 DEPEND=">= x11-libs/qt4-core-4.6
14 >= x11-libs/qt4-gui-4.6
15 >= x11-libs/qt4-svg-4.6"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude qt4 mbuild
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd_sourceforge ${PNAME}"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 cat > qwtconfig.pri <<-EOF
35 target.path = /usr/$(mlibdir)
36 headers.path = /usr/include/qwt5
37 doc.path = /usr/share/doc/${PNAME}-${PVER}
38 CONFIG += qt warn_on thread release
39 CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner
40 VERSION = ${PVER}
41 EOF
42
43 # enable svg support
44 echo "CONFIG += QwtSVGItem" >> qwtconfig.pri || die
45
46 # don't build examples - fix the qt files to build once installed
47 cat > examples/examples.pri <<-EOF
48 include( qwtconfig.pri )
49 TEMPLATE = app
50 MOC_DIR = moc
51 INCLUDEPATH += /usr/include/qwt5
52 DEPENDPATH += /usr/include/qwt5
53 LIBS += -lqwt
54 EOF
55 sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
56 sed -i -e 's/headers doc/headers/' src/src.pro || die
57 cp qwtconfig.pri examples/qwtconfig.pri || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63 ${QMAKE} || die
64 # not parallel-safe, split make
65 mmake sub-src || die
66 mmake || die
67 }

Properties

Name Value
svn:keywords Id