blob: dde49a5cef15e5488819bab661458f246e42e31d (
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
|
SUMMARY = "Qt Serial Port Library"
SECTION = "qt/libs"
HOMEPAGE = "http://qt-project.org/wiki/QtSerialPort"
LICENSE = "(LGPL-2.1 | GPL-3.0) & GFDL-1.3"
LIC_FILES_CHKSUM = " \
file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa \
file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c \
"
inherit pkgconfig
SRC_URI = " \
git://gitorious.org/qt/qtserialport.git;branch=stable \
"
S = "${WORKDIR}/git"
B = "${WORKDIR}/${BPN}-${PV}"
QMAKE_PROFILES = "${S}/qtserialport.pro"
EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
OE_QMAKE_QMAKE = "${WORKDIR}/qmake2"
do_prepare_qmake_symlink() {
ln -sf "${STAGING_BINDIR_NATIVE}/qmake2" ${WORKDIR}
}
addtask prepare_qmake_symlink after do_generate_qt_config_file before do_configure
do_configure_prepend() {
sed -i -e "s|\(Prefix\ =\).*|\1${prefix}|" ${WORKDIR}/qt.conf
sed -i -r -e "/^(Binaries|Headers|Plugins|Mkspecs)/ d" ${WORKDIR}/qt.conf
}
do_install() {
oe_runmake install DESTDIR=${D} INCLUDEDIR=${includedir}
}
FILES_${PN}-dev += " \
${includedir}/QtSerialPort/* \
${prefix}/mkspecs/* \
${libdir}/*.prl \
"
FILES_${PN}-dbg += " \
${libdir}/.debug/* \
"
|