Patchwork [meta-oe,v2,1/2] qtserialport: Adds initial recipe.

login
register
mail settings
Submitter Wayne Warren
Date April 22, 2013, 6:45 p.m.
Message ID <1366656311-5589-1-git-send-email-steven.w.warren@gmail.com>
Download mbox | patch
Permalink /patch/48657/
State Accepted, archived
Headers show

Comments

Wayne Warren - April 22, 2013, 6:45 p.m.
---
 meta-oe/recipes-qt/qtserialport/qtserialport.inc   |   34 ++++++++++++++++++++
 .../recipes-qt/qtserialport/qtserialport_5.1.0.bb  |    6 ++++
 2 files changed, 40 insertions(+)
 create mode 100644 meta-oe/recipes-qt/qtserialport/qtserialport.inc
 create mode 100644 meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb

Patch

diff --git a/meta-oe/recipes-qt/qtserialport/qtserialport.inc b/meta-oe/recipes-qt/qtserialport/qtserialport.inc
new file mode 100644
index 0000000..09f2f9a
--- /dev/null
+++ b/meta-oe/recipes-qt/qtserialport/qtserialport.inc
@@ -0,0 +1,34 @@ 
+DESCRIPTION = "Qt Serial Port Library"
+SECTION = "qt/libs"
+HOMEPAGE = "http://qt-project.org/wiki/QtSerialPort"
+
+LICENSE = "LGPL FDL GPL "
+LIC_FILES_CHKSUM = " \
+    file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa \
+    file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
+    file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c \
+    "
+
+inherit qt4e pkgconfig
+
+SRC_URI = " \
+    git://gitorious.org/qt/qtserialport.git \
+"
+
+S = "${WORKDIR}/git"
+B = "${WORKDIR}/${BPN}-${PV}"
+
+QMAKE_PROFILES="${S}/qtserialport.pro"
+EXTRA_QMAKEVARS_PRE += "PREFIX=/usr"
+EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
+
+do_compile_append() {
+ 	BOGUS_PREFIX=`qmake2 -query QT_INSTALL_PREFIX`
+	for f in `find ${B} -name "Makefile"` ;do 
+		sed -i -e "s|\(\$(INSTALL_ROOT)\)${BOGUS_PREFIX}|\1${prefix}|g" ${f}
+	done
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D} INCLUDEDIR=${includedir}
+}
diff --git a/meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb b/meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb
new file mode 100644
index 0000000..d903eb3
--- /dev/null
+++ b/meta-oe/recipes-qt/qtserialport/qtserialport_5.1.0.bb
@@ -0,0 +1,6 @@ 
+require qtserialport.inc
+
+PR = "r0"
+
+SRCREV="22e45f0b0f956c025339d72ad53dca57ef684858"
+