2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-02 18:13:55 +02:00
|
|
|
#
|
|
|
|
# qextserialport
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-02 18:13:55 +02:00
|
|
|
|
2015-07-26 22:38:38 +02:00
|
|
|
QEXTSERIALPORT_VERSION = ada321a9ee463f628e7b781b8ed00ff219152158
|
|
|
|
QEXTSERIALPORT_SITE = $(call github,qextserialport,qextserialport,$(QEXTSERIALPORT_VERSION))
|
2012-11-07 10:39:46 +01:00
|
|
|
QEXTSERIALPORT_LICENSE = MIT
|
2015-07-27 23:22:04 +02:00
|
|
|
QEXTSERIALPORT_LICENSE_FILES = LICENSE.md
|
2012-06-02 18:13:55 +02:00
|
|
|
QEXTSERIALPORT_INSTALL_STAGING = YES
|
|
|
|
|
2016-11-20 23:13:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
QEXTSERIALPORT_CONF_OPTS += CONFIG+=qesp_static
|
|
|
|
endif
|
|
|
|
|
2019-02-06 15:10:54 +01:00
|
|
|
QEXTSERIALPORT_DEPENDENCIES = qt5base
|
2016-11-20 23:13:26 +01:00
|
|
|
|
2014-11-01 23:15:11 +01:00
|
|
|
define QEXTSERIALPORT_CONFIGURE_CMDS
|
2019-02-06 15:10:54 +01:00
|
|
|
cd $(@D); $(TARGET_MAKE_ENV) $(QT5_QMAKE) $(QEXTSERIALPORT_CONF_OPTS)
|
2014-11-01 23:15:11 +01:00
|
|
|
endef
|
2012-06-02 18:13:55 +02:00
|
|
|
|
|
|
|
define QEXTSERIALPORT_BUILD_CMDS
|
2014-03-19 20:30:09 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
2012-06-02 18:13:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define QEXTSERIALPORT_INSTALL_STAGING_CMDS
|
2016-11-20 23:13:28 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
|
2012-06-02 18:13:55 +02:00
|
|
|
endef
|
|
|
|
|
2016-11-20 23:13:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2017-01-09 09:54:01 +01:00
|
|
|
QEXTSERIALPORT_INSTALL_TARGET = NO
|
2016-11-20 23:13:29 +01:00
|
|
|
else
|
2012-06-02 18:13:55 +02:00
|
|
|
define QEXTSERIALPORT_INSTALL_TARGET_CMDS
|
2012-11-07 10:39:46 +01:00
|
|
|
cp -a $(@D)/*.so.* $(TARGET_DIR)/usr/lib
|
2012-06-02 18:13:55 +02:00
|
|
|
endef
|
2016-11-20 23:13:29 +01:00
|
|
|
endif
|
2012-06-02 18:13:55 +02:00
|
|
|
|
|
|
|
$(eval $(generic-package))
|