1 ################################################################################
5 ################################################################################
7 QT5SENSORS_VERSION
= $(QT5_VERSION
)
8 QT5SENSORS_SITE
= $(QT5_SITE
)
9 QT5SENSORS_SOURCE
= qtsensors-opensource-src-
$(QT5SENSORS_VERSION
).
tar.xz
10 QT5SENSORS_DEPENDENCIES
= qt5base
11 QT5SENSORS_INSTALL_STAGING
= YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
),y
)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST
),y
)
15 QT5SENSORS_LICENSE
= GPLv2
+ or LGPLv3
, GPLv3 with exception
(tools
), GFDLv1.3
(docs
)
16 QT5SENSORS_LICENSE_FILES
= LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
18 QT5SENSORS_LICENSE
= GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3
, GFDLv1.3
(docs
)
19 QT5SENSORS_LICENSE_FILES
= LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
22 QT5SENSORS_LICENSE
= Commercial license
23 QT5SENSORS_REDISTRIBUTE
= NO
26 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
27 QT5SENSORS_DEPENDENCIES
+= qt5declarative
30 define QT5SENSORS_CONFIGURE_CMDS
31 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
34 define QT5SENSORS_BUILD_CMDS
35 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
38 define QT5SENSORS_INSTALL_STAGING_CMDS
39 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install
40 $(QT5_LA_PRL_FILES_FIXUP
)
43 ifeq ($(BR2_STATIC_LIBS
),)
44 define QT5SENSORS_INSTALL_TARGET_LIBS
45 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5Sensors.so.
* $(TARGET_DIR
)/usr
/lib
46 cp
-dpfr
$(STAGING_DIR
)/usr
/lib
/qt
/plugins
/sensor
* $(TARGET_DIR
)/usr
/lib
/qt
/plugins
50 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK
),y
)
51 define QT5SENSORS_INSTALL_TARGET_QMLS
52 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/QtSensors
$(TARGET_DIR
)/usr
/qml
56 define QT5SENSORS_INSTALL_TARGET_CMDS
57 $(QT5SENSORS_INSTALL_TARGET_LIBS
)
58 $(QT5SENSORS_INSTALL_TARGET_QMLS
)
61 $(eval
$(generic-package
))