diff options
Diffstat (limited to 'meta-oe/recipes-qt/qtserialport/qtserialport.inc')
-rw-r--r-- | meta-oe/recipes-qt/qtserialport/qtserialport.inc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-oe/recipes-qt/qtserialport/qtserialport.inc b/meta-oe/recipes-qt/qtserialport/qtserialport.inc new file mode 100644 index 000000000..dde49a5ce --- /dev/null +++ b/meta-oe/recipes-qt/qtserialport/qtserialport.inc | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "Qt Serial Port Library" | ||
2 | SECTION = "qt/libs" | ||
3 | HOMEPAGE = "http://qt-project.org/wiki/QtSerialPort" | ||
4 | |||
5 | LICENSE = "(LGPL-2.1 | GPL-3.0) & GFDL-1.3" | ||
6 | LIC_FILES_CHKSUM = " \ | ||
7 | file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa \ | ||
8 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
9 | file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c \ | ||
10 | " | ||
11 | |||
12 | inherit pkgconfig | ||
13 | |||
14 | SRC_URI = " \ | ||
15 | git://gitorious.org/qt/qtserialport.git;branch=stable \ | ||
16 | " | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | B = "${WORKDIR}/${BPN}-${PV}" | ||
20 | |||
21 | QMAKE_PROFILES = "${S}/qtserialport.pro" | ||
22 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" | ||
23 | OE_QMAKE_QMAKE = "${WORKDIR}/qmake2" | ||
24 | |||
25 | do_prepare_qmake_symlink() { | ||
26 | ln -sf "${STAGING_BINDIR_NATIVE}/qmake2" ${WORKDIR} | ||
27 | } | ||
28 | |||
29 | addtask prepare_qmake_symlink after do_generate_qt_config_file before do_configure | ||
30 | |||
31 | do_configure_prepend() { | ||
32 | sed -i -e "s|\(Prefix\ =\).*|\1${prefix}|" ${WORKDIR}/qt.conf | ||
33 | sed -i -r -e "/^(Binaries|Headers|Plugins|Mkspecs)/ d" ${WORKDIR}/qt.conf | ||
34 | } | ||
35 | |||
36 | do_install() { | ||
37 | oe_runmake install DESTDIR=${D} INCLUDEDIR=${includedir} | ||
38 | } | ||
39 | |||
40 | FILES_${PN}-dev += " \ | ||
41 | ${includedir}/QtSerialPort/* \ | ||
42 | ${prefix}/mkspecs/* \ | ||
43 | ${libdir}/*.prl \ | ||
44 | " | ||
45 | |||
46 | FILES_${PN}-dbg += " \ | ||
47 | ${libdir}/.debug/* \ | ||
48 | " | ||