Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
Don't require Qt GUI module
|
||||
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
diff -Nrup qextserialport-f83b4e7ca922e53.orig/qextserialport.pro qextserialport-f83b4e7ca922e53/qextserialport.pro
|
||||
--- qextserialport-f83b4e7ca922e53.orig/qextserialport.pro 2012-10-17 09:13:53.000000000 +0200
|
||||
+++ qextserialport-f83b4e7ca922e53/qextserialport.pro 2012-11-13 22:48:29.249431510 +0100
|
||||
@@ -41,6 +41,8 @@ macx:qesp_mac_framework {
|
||||
|
||||
win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release build_all
|
||||
|
||||
+!win32*:!wince*:QT -= gui
|
||||
+
|
||||
#generate proper library name
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
QESP_LIB_BASENAME = QtExtSerialPort
|
||||
@@ -0,0 +1,15 @@
|
||||
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"
|
||||
@@ -0,0 +1,19 @@
|
||||
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}
|
||||
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_QEXTSERIALPORT
|
||||
bool "qextserialport"
|
||||
depends on BR2_PACKAGE_QT || BR2_PACKAGE_QT5
|
||||
help
|
||||
A Qt library to manage serial ports
|
||||
|
||||
http://code.google.com/p/qextserialport/
|
||||
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# qextserialport
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QEXTSERIALPORT_VERSION = ada321a9ee463f628e7b781b8ed00ff219152158
|
||||
QEXTSERIALPORT_SITE = $(call github,qextserialport,qextserialport,$(QEXTSERIALPORT_VERSION))
|
||||
QEXTSERIALPORT_LICENSE = MIT
|
||||
QEXTSERIALPORT_LICENSE_FILES = LICENSE.md
|
||||
QEXTSERIALPORT_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT),y)
|
||||
QEXTSERIALPORT_DEPENDENCIES += qt
|
||||
define QEXTSERIALPORT_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_MAKE_ENV) $(QT_QMAKE))
|
||||
endef
|
||||
else ifeq ($(BR2_PACKAGE_QT5),y)
|
||||
QEXTSERIALPORT_DEPENDENCIES += qt5base
|
||||
define QEXTSERIALPORT_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_MAKE_ENV) $(QT5_QMAKE))
|
||||
endef
|
||||
endif
|
||||
|
||||
define QEXTSERIALPORT_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define QEXTSERIALPORT_INSTALL_STAGING_CMDS
|
||||
mkdir -p $(STAGING_DIR)/usr/include/QExtSerialPort
|
||||
cp $(@D)/src/*.h $(STAGING_DIR)/usr/include/QExtSerialPort/
|
||||
cp $(@D)/src/QExtSerialPort $(STAGING_DIR)/usr/include/QExtSerialPort/
|
||||
cp -a $(@D)/*.so* $(STAGING_DIR)/usr/lib/
|
||||
cp $(@D)/qextserialport.pc $(STAGING_DIR)/usr/lib/pkgconfig/
|
||||
endef
|
||||
|
||||
define QEXTSERIALPORT_INSTALL_TARGET_CMDS
|
||||
cp -a $(@D)/*.so.* $(TARGET_DIR)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user