aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qwt/qwt-qt5.inc
blob: f3ece3999ce5ce342e5400e82b86c58871b05b6c (plain)
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
42
43
44
45
46
47
48
DESCRIPTION = "Qt Widget Extension for Technical Applications"
SECTION = "libs"

# LGPLv2.1 + some exceptions
LICENSE = "QWTv1.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"

DEPENDS = "qtbase qtsvg qttools"

SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
           file://remove_rpath.patch \
          "

S = "${WORKDIR}/qwt-${PV}"

do_configure_prepend() {
    cd ${S}
    sed -i -e 's:RELEASE_SUFFIX      = :RELEASE_SUFFIX      = ${QT_LIBINFIX}:' *.pri
    sed -i -e 's:qtAddLibrary(qwt:qtAddLibrary(qwt)${QT_LIBINFIX}:g' *.prf
    sed -e 's/# QWT_CONFIG     += QwtExamples/QWT_CONFIG     += QwtExamples/g' -i qwtconfig.pri
    sed -i -e 's:/usr/local/qwt-$$QWT_VERSION:${D}${prefix}:g' ${S}/*.pri
}

do_install() {
    cd ${S}
    oe_runmake -e install
#    install -d ${D}${datadir}/doc/${PN}
#    mv ${D}${prefix}/doc/* ${D}${datadir}/doc/${PN}/
#    rmdir ${D}${prefix}/doc
#    cd ${S}/examples
#    install -d ${D}/${bindir}
#    cd bin${QT_LIBINFIX}/
#    for i in * ; do
#        cp -pPR ${i} ${D}/${bindir}/${i}${QT_LIBINFIX}
#    done
#    install -d ${D}${libdir}/${QT_DIR_NAME}
#    mv ${D}${prefix}/plugins ${D}${libdir}/${QT_DIR_NAME}
}

PACKAGES_prepend = "${PN}-examples ${PN}-features ${PN}-plugins "
FILES_${PN}-examples = "${bindir}/*"
FILES_${PN}-features = "${prefix}/features"
FILES_${PN}-plugins = "${prefix}/plugins/designer/*.so"
FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug"
FILES_${PN}-doc += "${prefix}/doc"

INSANE_SKIP_${PN}-plugins += "libdir"
INSANE_SKIP_${PN}-dbg += "libdir"