diff options
author | Wayne Warren <steven.w.warren@gmail.com> | 2013-04-22 18:45:11 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-26 10:00:32 +0200 |
commit | 6f0d8c365f0ae376f715cdf0fc171b0a26d597b9 (patch) | |
tree | c69f2ed452e002575efb7b3b2d2175c295728f4c /meta-oe/recipes-qt | |
parent | 83d8217c45193e05707319ecf7034d250ab50fdb (diff) | |
download | meta-openembedded-6f0d8c365f0ae376f715cdf0fc171b0a26d597b9.tar.gz |
qtserialport-e: Various fixes per openembedded-devel list comments.
* Change DESCRIPTION to SUMMARY
* Fix LICENSE declarations to be version-specific
* Coding convention fixes * Don't modify Makefiles modified by qmake2; instead
symlink qmake2 in to $WORKDIR to be run from there so that it uses
$WORKDIR/qt.conf values
Signed-off-by: Wayne Warren <steven.w.warren@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-qt')
-rw-r--r-- | meta-oe/recipes-qt/qtserialport/qtserialport-e_5.1.0.bb | 6 | ||||
-rw-r--r-- | meta-oe/recipes-qt/qtserialport/qtserialport.inc | 34 | ||||
-rw-r--r-- | meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb | 6 |
3 files changed, 30 insertions, 16 deletions
diff --git a/meta-oe/recipes-qt/qtserialport/qtserialport-e_5.1.0.bb b/meta-oe/recipes-qt/qtserialport/qtserialport-e_5.1.0.bb new file mode 100644 index 000000000..dcaac2096 --- /dev/null +++ b/meta-oe/recipes-qt/qtserialport/qtserialport-e_5.1.0.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit qt4e | ||
2 | |||
3 | require qtserialport.inc | ||
4 | |||
5 | SRCREV = "22e45f0b0f956c025339d72ad53dca57ef684858" | ||
6 | |||
diff --git a/meta-oe/recipes-qt/qtserialport/qtserialport.inc b/meta-oe/recipes-qt/qtserialport/qtserialport.inc index 09f2f9a2f..fc2020d49 100644 --- a/meta-oe/recipes-qt/qtserialport/qtserialport.inc +++ b/meta-oe/recipes-qt/qtserialport/qtserialport.inc | |||
@@ -1,15 +1,15 @@ | |||
1 | DESCRIPTION = "Qt Serial Port Library" | 1 | SUMMARY = "Qt Serial Port Library" |
2 | SECTION = "qt/libs" | 2 | SECTION = "qt/libs" |
3 | HOMEPAGE = "http://qt-project.org/wiki/QtSerialPort" | 3 | HOMEPAGE = "http://qt-project.org/wiki/QtSerialPort" |
4 | 4 | ||
5 | LICENSE = "LGPL FDL GPL " | 5 | LICENSE = "(LGPL-2.1 | GPL-3.0) & GFDL-1.3" |
6 | LIC_FILES_CHKSUM = " \ | 6 | LIC_FILES_CHKSUM = " \ |
7 | file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa \ | 7 | file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa \ |
8 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | 8 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ |
9 | file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c \ | 9 | file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c \ |
10 | " | 10 | " |
11 | 11 | ||
12 | inherit qt4e pkgconfig | 12 | inherit pkgconfig |
13 | 13 | ||
14 | SRC_URI = " \ | 14 | SRC_URI = " \ |
15 | git://gitorious.org/qt/qtserialport.git \ | 15 | git://gitorious.org/qt/qtserialport.git \ |
@@ -18,17 +18,31 @@ SRC_URI = " \ | |||
18 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
19 | B = "${WORKDIR}/${BPN}-${PV}" | 19 | B = "${WORKDIR}/${BPN}-${PV}" |
20 | 20 | ||
21 | QMAKE_PROFILES="${S}/qtserialport.pro" | 21 | QMAKE_PROFILES = "${S}/qtserialport.pro" |
22 | EXTRA_QMAKEVARS_PRE += "PREFIX=/usr" | ||
23 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" | 22 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" |
23 | OE_QMAKE_QMAKE = "${WORKDIR}/qmake2" | ||
24 | 24 | ||
25 | do_compile_append() { | 25 | do_prepare_qmake_symlink() { |
26 | BOGUS_PREFIX=`qmake2 -query QT_INSTALL_PREFIX` | 26 | ln -sf "${STAGING_BINDIR_NATIVE}/qmake2" ${WORKDIR} |
27 | for f in `find ${B} -name "Makefile"` ;do | 27 | } |
28 | sed -i -e "s|\(\$(INSTALL_ROOT)\)${BOGUS_PREFIX}|\1${prefix}|g" ${f} | 28 | |
29 | done | 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 | ||
30 | } | 34 | } |
31 | 35 | ||
32 | do_install() { | 36 | do_install() { |
33 | oe_runmake install DESTDIR=${D} INCLUDEDIR=${includedir} | 37 | oe_runmake install DESTDIR=${D} INCLUDEDIR=${includedir} |
34 | } | 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 | " | ||
diff --git a/meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb b/meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb deleted file mode 100644 index d903eb3ae..000000000 --- a/meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require qtserialport.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | |||
5 | SRCREV="22e45f0b0f956c025339d72ad53dca57ef684858" | ||
6 | |||