Commit 7eca96e6 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

qextserialport: new package



[Peter: adjust for BR changes]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 51f3425e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@ source "package/qt/Config.in"

if BR2_PACKAGE_QT
comment "QT libraries and helper libraries"
source "package/qextserialport/Config.in"
source "package/qtuio/Config.in"
endif

+9 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_QEXTSERIALPORT
	bool "qextserialport"
	# Qt is a big library, we don't want to select it
	# automatically without the user knowing
	depends on BR2_PACKAGE_QT
	help
	  A Qt library to manage serial ports

	  http://code.google.com/p/qextserialport/
+15 −0
Original line number Diff line number Diff line
Create a main include file QExtSerialPort

This main include file will be installed in
<QExtSerialPort/QExtSerialPort> so that Qt applications can use this
library by including header files in a Qt-like style.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: qextserialport-ef4af2a2ee3f/src/QExtSerialPort
===================================================================
--- /dev/null
+++ qextserialport-ef4af2a2ee3f/src/QExtSerialPort
@@ -0,0 +1,2 @@
+#include "qextserialport.h"
+#include "qextserialenumerator.h"
+17 −0
Original line number Diff line number Diff line
Disable compilation of examples

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: qextserialport-ef4af2a2ee3f/qextserialport.pro
===================================================================
--- qextserialport-ef4af2a2ee3f.orig/qextserialport.pro
+++ qextserialport-ef4af2a2ee3f/qextserialport.pro
@@ -1,7 +1,4 @@
 #
 TEMPLATE = subdirs
 CONFIG   += ordered
-SUBDIRS  = src \
-           examples/enumerator \
-           examples/event
-
+SUBDIRS  = src
+19 −0
Original line number Diff line number Diff line
Add a pkgconfig file to ease usage with applications

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: qextserialport-ef4af2a2ee3f/qextserialport.pc
===================================================================
--- /dev/null
+++ qextserialport-ef4af2a2ee3f/qextserialport.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include/QExtSerialPort
+
+Name: QtExtSerialPort
+Description: QtExtSerialPort library
+Version: 1.2.0
+Libs: -L${libdir} -lqextserialport
+Cflags: -I${includedir}
Loading