python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / qt5 / qt5location / qt5location.mk
blobdbdc64573dcd4fc4ad5dd919f967cf1d706d9b0b
1 ################################################################################
3 # qt5location
5 ################################################################################
7 QT5LOCATION_VERSION = $(QT5_VERSION)
8 QT5LOCATION_SITE = $(QT5_SITE)
9 QT5LOCATION_SOURCE = qtlocation-opensource-src-$(QT5LOCATION_VERSION).tar.xz
10 QT5LOCATION_DEPENDENCIES = qt5base
11 QT5LOCATION_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5LOCATION_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
16 QT5LOCATION_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
17 else
18 QT5LOCATION_LICENSE = GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
19 QT5LOCATION_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
20 endif
21 else
22 QT5LOCATION_LICENSE = Commercial license
23 QT5LOCATION_REDISTRIBUTE = NO
24 endif
26 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
27 QT5LOCATION_DEPENDENCIES += qt5declarative
28 endif
30 define QT5LOCATION_CONFIGURE_CMDS
31 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
32 endef
34 define QT5LOCATION_BUILD_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
36 endef
38 define QT5LOCATION_INSTALL_STAGING_CMDS
39 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
40 $(QT5_LA_PRL_FILES_FIXUP)
41 endef
43 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
44 define QT5LOCATION_INSTALL_TARGET_QMLS
45 cp -dpfr $(STAGING_DIR)/usr/qml/QtPositioning $(TARGET_DIR)/usr/qml/
46 cp -dpfr $(STAGING_DIR)/usr/qml/QtLocation $(TARGET_DIR)/usr/qml/
47 endef
48 define QT5LOCATION_INSTALL_TARGET_LOCATION
49 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Location.so.* $(TARGET_DIR)/usr/lib
50 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/geoservices $(TARGET_DIR)/usr/lib/qt/plugins/
51 endef
52 endif
54 define QT5LOCATION_INSTALL_TARGET_POSITION
55 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Positioning.so.* $(TARGET_DIR)/usr/lib
56 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/position $(TARGET_DIR)/usr/lib/qt/plugins/
57 endef
59 define QT5LOCATION_INSTALL_TARGET_CMDS
60 $(QT5LOCATION_INSTALL_TARGET_POSITION)
61 $(QT5LOCATION_INSTALL_TARGET_LOCATION)
62 $(QT5LOCATION_INSTALL_TARGET_QMLS)
63 endef
66 $(eval $(generic-package))