Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # qt5webkit |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Alexey Brodkin | 9d5ac96 | 2016-11-09 16:59:54 +0300 | [diff] [blame] | 7 | QT5WEBKIT_VERSION = $(QT5_VERSION) |
| 8 | QT5WEBKIT_SITE = $(QT5_SNAPSHOTS_SITE) |
| 9 | QT5WEBKIT_SOURCE = qtwebkit-opensource-src-$(QT5WEBKIT_VERSION).tar.xz |
Yann E. MORIN | ac16793 | 2016-07-26 00:33:31 +0200 | [diff] [blame] | 10 | QT5WEBKIT_DEPENDENCIES = \ |
| 11 | host-bison host-flex host-gperf host-python host-ruby \ |
| 12 | qt5base sqlite |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 13 | QT5WEBKIT_INSTALL_STAGING = YES |
| 14 | |
| 15 | QT5WEBKIT_LICENSE_FILES = Source/WebCore/LICENSE-LGPL-2 Source/WebCore/LICENSE-LGPL-2.1 |
| 16 | |
Rahul Bedarkar | 96e9480 | 2017-03-30 19:13:39 +0530 | [diff] [blame] | 17 | QT5WEBKIT_LICENSE = LGPL-2.1+, BSD-3-Clause, BSD-2-Clause |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 18 | # Source files contain references to LGPL_EXCEPTION.txt but it is not included |
| 19 | # in the archive. |
| 20 | QT5WEBKIT_LICENSE_FILES += LICENSE.LGPLv21 |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 21 | |
| 22 | ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y) |
| 23 | QT5WEBKIT_DEPENDENCIES += xlib_libXext xlib_libXrender |
| 24 | endif |
| 25 | |
| 26 | ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) |
| 27 | QT5WEBKIT_DEPENDENCIES += qt5declarative |
| 28 | endif |
| 29 | |
Yann E. MORIN | ac16793 | 2016-07-26 00:33:31 +0200 | [diff] [blame] | 30 | # QtWebkit's build system uses python, but only supports python2. We work |
| 31 | # around this by forcing python2 early in the PATH, via a python->python2 |
| 32 | # symlink. |
Johan Derycke | d4b494b | 2016-10-19 16:35:24 +0200 | [diff] [blame] | 33 | QT5WEBKIT_ENV = PATH=$(@D)/host-bin:$(BR_PATH) |
Yann E. MORIN | ac16793 | 2016-07-26 00:33:31 +0200 | [diff] [blame] | 34 | define QT5WEBKIT_PYTHON2_SYMLINK |
Johan Derycke | d4b494b | 2016-10-19 16:35:24 +0200 | [diff] [blame] | 35 | mkdir -p $(@D)/host-bin |
Arnout Vandecappelle | 0f9c0bf | 2017-07-05 13:14:19 +0200 | [diff] [blame^] | 36 | ln -sf $(HOST_DIR)/bin/python2 $(@D)/host-bin/python |
Yann E. MORIN | ac16793 | 2016-07-26 00:33:31 +0200 | [diff] [blame] | 37 | endef |
| 38 | QT5WEBKIT_PRE_CONFIGURE_HOOKS += QT5WEBKIT_PYTHON2_SYMLINK |
| 39 | |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 40 | define QT5WEBKIT_CONFIGURE_CMDS |
Arnout Vandecappelle | 0f9c0bf | 2017-07-05 13:14:19 +0200 | [diff] [blame^] | 41 | (cd $(@D); $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(HOST_DIR)/bin/qmake) |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 42 | endef |
| 43 | |
| 44 | define QT5WEBKIT_BUILD_CMDS |
Yann E. MORIN | ac16793 | 2016-07-26 00:33:31 +0200 | [diff] [blame] | 45 | $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D) |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 46 | endef |
| 47 | |
| 48 | define QT5WEBKIT_INSTALL_STAGING_CMDS |
Yann E. MORIN | ac16793 | 2016-07-26 00:33:31 +0200 | [diff] [blame] | 49 | $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D) install |
Gary Bisson | e8dbdbd | 2016-04-13 15:40:35 +0200 | [diff] [blame] | 50 | $(QT5_LA_PRL_FILES_FIXUP) |
| 51 | endef |
| 52 | |
| 53 | ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y) |
| 54 | define QT5WEBKIT_INSTALL_TARGET_QMLS |
| 55 | cp -dpfr $(STAGING_DIR)/usr/qml/QtWebKit $(TARGET_DIR)/usr/qml/ |
| 56 | endef |
| 57 | endif |
| 58 | |
| 59 | define QT5WEBKIT_INSTALL_TARGET_CMDS |
| 60 | cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebKit*.so.* $(TARGET_DIR)/usr/lib |
| 61 | cp -dpf $(@D)/bin/* $(TARGET_DIR)/usr/bin/ |
| 62 | $(QT5WEBKIT_INSTALL_TARGET_QMLS) |
| 63 | endef |
| 64 | |
| 65 | $(eval $(generic-package)) |