docker-engine: new package
[buildroot-gz.git] / package / qt5 / qt5sensors / qt5sensors.mk
blob0dd952a4ca3bad0086e9dc33efe8a1cf568780a5
1 ################################################################################
3 # qt5sensors
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 QT5SENSORS_LICENSE = GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
15 QT5SENSORS_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5SENSORS_LICENSE = Commercial license
18 QT5SENSORS_REDISTRIBUTE = NO
19 endif
21 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
22 QT5SENSORS_DEPENDENCIES += qt5declarative
23 endif
25 define QT5SENSORS_CONFIGURE_CMDS
26 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
27 endef
29 define QT5SENSORS_BUILD_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
31 endef
33 define QT5SENSORS_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
35 $(QT5_LA_PRL_FILES_FIXUP)
36 endef
38 ifeq ($(BR2_STATIC_LIBS),)
39 define QT5SENSORS_INSTALL_TARGET_LIBS
40 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Sensors.so.* $(TARGET_DIR)/usr/lib
41 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/sensor* $(TARGET_DIR)/usr/lib/qt/plugins
42 endef
43 endif
45 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
46 define QT5SENSORS_INSTALL_TARGET_QMLS
47 cp -dpfr $(STAGING_DIR)/usr/qml/QtSensors $(TARGET_DIR)/usr/qml
48 endef
49 endif
51 define QT5SENSORS_INSTALL_TARGET_CMDS
52 $(QT5SENSORS_INSTALL_TARGET_LIBS)
53 $(QT5SENSORS_INSTALL_TARGET_QMLS)
54 endef
56 $(eval $(generic-package))