DEVELOPERS: add Romain Naour for linux-syscall-support
[buildroot-gz.git] / package / qt5 / qt5location / qt5location.mk
blob358b1621c54fcfe43036ad6aab29bb32e78836e7
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 QT5LOCATION_LICENSE = GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
15 QT5LOCATION_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5LOCATION_LICENSE = Commercial license
18 QT5LOCATION_REDISTRIBUTE = NO
19 endif
21 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
22 QT5LOCATION_DEPENDENCIES += qt5declarative
23 endif
25 define QT5LOCATION_CONFIGURE_CMDS
26 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
27 endef
29 define QT5LOCATION_BUILD_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
31 endef
33 define QT5LOCATION_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
35 $(QT5_LA_PRL_FILES_FIXUP)
36 endef
38 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
39 define QT5LOCATION_INSTALL_TARGET_QMLS
40 cp -dpfr $(STAGING_DIR)/usr/qml/QtPositioning $(TARGET_DIR)/usr/qml/
41 cp -dpfr $(STAGING_DIR)/usr/qml/QtLocation $(TARGET_DIR)/usr/qml/
42 endef
43 define QT5LOCATION_INSTALL_TARGET_LOCATION
44 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Location.so.* $(TARGET_DIR)/usr/lib
45 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/geoservices $(TARGET_DIR)/usr/lib/qt/plugins/
46 endef
47 endif
49 define QT5LOCATION_INSTALL_TARGET_POSITION
50 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Positioning.so.* $(TARGET_DIR)/usr/lib
51 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/position $(TARGET_DIR)/usr/lib/qt/plugins/
52 endef
54 define QT5LOCATION_INSTALL_TARGET_CMDS
55 $(QT5LOCATION_INSTALL_TARGET_POSITION)
56 $(QT5LOCATION_INSTALL_TARGET_LOCATION)
57 $(QT5LOCATION_INSTALL_TARGET_QMLS)
58 endef
61 $(eval $(generic-package))