2016-04-13 15:40:35 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# qt5webkit
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
qt5: bump latest version to 5.9.2
qt5base:
- removed 0001-Fix-error-attribute-target-crc-is-unknown.patch
(upstream committed, see [1])
- removed 0002-examples-fix-compile-without-opengl-support.patch
(upstream committed, see [2])
qt5declarative:
- removed 0001-Fix-alignment-issue-on-ARMv7.patch
(upstream committed, see [3])
- moved 0001-examples-photoviewer-needs-widgets-support.patch to 5.6.2
only (upstream 5.9.2 committed, see [4])
- moved 0002-examples-qquickviewcomparison-and-quickwidget-needs-.patch
to 5.6.2 only (similare patch upstream committed, see [5])
qt5location:
- removed 0001-Fix-plugins-build-dependency.patch
(upstream committed, see [6])
qt5webchannel:
- fix webchannel.js installation to target (the locatinon of the
file webchannel.js changed from src/webchannel/qwebchannel.js
to examples/webchannel/shared/qwebchannel.js, see commit [7])
qt5webengine:
- removed 0001-Always-compile-QWebEnginePage-print.patch
(upstream committed, see [8])
- keep 0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch
(upstream committed, see [9], but reverted afterwards, see [10])
qt5webkit:
- fall back to 5.9.1 (no 5.9.2 package provided, see [11] and [12]).
[1] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=b7722c251c3a0938c7c71fc3da47fdbe920060b7
[2] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=6ce4b680cdde7827a6ed4d00dbeb7e7e91569433
[3] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=03c2661b1243cc529fc3d8cfa65073f1da420307
[4] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=452a78d0ac4a1579733a8ab641be24c9b7c0dd96
[5] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=fa52bb665d6beb77a951c14c8edcba3541850afc
[6] http://code.qt.io/cgit/qt/qtlocation.git/commit/?id=3ac051c4549575634cecc706175b019f4ed4c3bf
[7] https://code.qt.io/cgit/qt/qtwebchannel.git/commit/?id=e7f150abaa8e81d3e404e9631a49341a7f7623d1
[8] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=085c2c529473bbe9dd7c8c5698a45053520cc423
[9] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=d4c621f6a6b87f2a86069fa393b9f7c4f9e7b9ad
[10] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=c11c2c8981e647c1eb2c6753ce77d436b92fff87
[11] https://blog.qt.io/blog/2017/10/06/qt-5-9-2-released/#comment-1200724
[12] https://blog.qt.io/blog/2017/10/06/qt-5-9-2-released/#comment-1200746
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: Joshua Henderson <joshua.henderson@microchip.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-10-17 22:28:03 +02:00
|
|
|
# no 5.9.2 package available, fall back to 5.9.1 version
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
|
QT5WEBKIT_VERSION = 5.9.1
|
2018-02-14 00:16:45 +01:00
|
|
|
QT5WEBKIT_SITE = https://download.qt.io/official_releases/qt/5.9/5.9.1/submodules
|
qt5: bump latest version to 5.9.2
qt5base:
- removed 0001-Fix-error-attribute-target-crc-is-unknown.patch
(upstream committed, see [1])
- removed 0002-examples-fix-compile-without-opengl-support.patch
(upstream committed, see [2])
qt5declarative:
- removed 0001-Fix-alignment-issue-on-ARMv7.patch
(upstream committed, see [3])
- moved 0001-examples-photoviewer-needs-widgets-support.patch to 5.6.2
only (upstream 5.9.2 committed, see [4])
- moved 0002-examples-qquickviewcomparison-and-quickwidget-needs-.patch
to 5.6.2 only (similare patch upstream committed, see [5])
qt5location:
- removed 0001-Fix-plugins-build-dependency.patch
(upstream committed, see [6])
qt5webchannel:
- fix webchannel.js installation to target (the locatinon of the
file webchannel.js changed from src/webchannel/qwebchannel.js
to examples/webchannel/shared/qwebchannel.js, see commit [7])
qt5webengine:
- removed 0001-Always-compile-QWebEnginePage-print.patch
(upstream committed, see [8])
- keep 0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch
(upstream committed, see [9], but reverted afterwards, see [10])
qt5webkit:
- fall back to 5.9.1 (no 5.9.2 package provided, see [11] and [12]).
[1] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=b7722c251c3a0938c7c71fc3da47fdbe920060b7
[2] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=6ce4b680cdde7827a6ed4d00dbeb7e7e91569433
[3] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=03c2661b1243cc529fc3d8cfa65073f1da420307
[4] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=452a78d0ac4a1579733a8ab641be24c9b7c0dd96
[5] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=fa52bb665d6beb77a951c14c8edcba3541850afc
[6] http://code.qt.io/cgit/qt/qtlocation.git/commit/?id=3ac051c4549575634cecc706175b019f4ed4c3bf
[7] https://code.qt.io/cgit/qt/qtwebchannel.git/commit/?id=e7f150abaa8e81d3e404e9631a49341a7f7623d1
[8] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=085c2c529473bbe9dd7c8c5698a45053520cc423
[9] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=d4c621f6a6b87f2a86069fa393b9f7c4f9e7b9ad
[10] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=c11c2c8981e647c1eb2c6753ce77d436b92fff87
[11] https://blog.qt.io/blog/2017/10/06/qt-5-9-2-released/#comment-1200724
[12] https://blog.qt.io/blog/2017/10/06/qt-5-9-2-released/#comment-1200746
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: Joshua Henderson <joshua.henderson@microchip.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-10-17 22:28:03 +02:00
|
|
|
else
|
2016-11-09 14:59:54 +01:00
|
|
|
QT5WEBKIT_VERSION = $(QT5_VERSION)
|
2018-02-14 00:16:45 +01:00
|
|
|
QT5WEBKIT_SITE = https://download.qt.io/community_releases/5.6/$(QT5_VERSION)
|
qt5: bump latest version to 5.9.2
qt5base:
- removed 0001-Fix-error-attribute-target-crc-is-unknown.patch
(upstream committed, see [1])
- removed 0002-examples-fix-compile-without-opengl-support.patch
(upstream committed, see [2])
qt5declarative:
- removed 0001-Fix-alignment-issue-on-ARMv7.patch
(upstream committed, see [3])
- moved 0001-examples-photoviewer-needs-widgets-support.patch to 5.6.2
only (upstream 5.9.2 committed, see [4])
- moved 0002-examples-qquickviewcomparison-and-quickwidget-needs-.patch
to 5.6.2 only (similare patch upstream committed, see [5])
qt5location:
- removed 0001-Fix-plugins-build-dependency.patch
(upstream committed, see [6])
qt5webchannel:
- fix webchannel.js installation to target (the locatinon of the
file webchannel.js changed from src/webchannel/qwebchannel.js
to examples/webchannel/shared/qwebchannel.js, see commit [7])
qt5webengine:
- removed 0001-Always-compile-QWebEnginePage-print.patch
(upstream committed, see [8])
- keep 0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch
(upstream committed, see [9], but reverted afterwards, see [10])
qt5webkit:
- fall back to 5.9.1 (no 5.9.2 package provided, see [11] and [12]).
[1] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=b7722c251c3a0938c7c71fc3da47fdbe920060b7
[2] http://code.qt.io/cgit/qt/qtbase.git/commit/?id=6ce4b680cdde7827a6ed4d00dbeb7e7e91569433
[3] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=03c2661b1243cc529fc3d8cfa65073f1da420307
[4] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=452a78d0ac4a1579733a8ab641be24c9b7c0dd96
[5] http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=fa52bb665d6beb77a951c14c8edcba3541850afc
[6] http://code.qt.io/cgit/qt/qtlocation.git/commit/?id=3ac051c4549575634cecc706175b019f4ed4c3bf
[7] https://code.qt.io/cgit/qt/qtwebchannel.git/commit/?id=e7f150abaa8e81d3e404e9631a49341a7f7623d1
[8] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=085c2c529473bbe9dd7c8c5698a45053520cc423
[9] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=d4c621f6a6b87f2a86069fa393b9f7c4f9e7b9ad
[10] http://code.qt.io/cgit/qt/qtwebengine.git/commit/?id=c11c2c8981e647c1eb2c6753ce77d436b92fff87
[11] https://blog.qt.io/blog/2017/10/06/qt-5-9-2-released/#comment-1200724
[12] https://blog.qt.io/blog/2017/10/06/qt-5-9-2-released/#comment-1200746
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: Joshua Henderson <joshua.henderson@microchip.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-10-17 22:28:03 +02:00
|
|
|
endif
|
|
|
|
|
2016-11-09 14:59:54 +01:00
|
|
|
QT5WEBKIT_SOURCE = qtwebkit-opensource-src-$(QT5WEBKIT_VERSION).tar.xz
|
2016-07-26 00:33:31 +02:00
|
|
|
QT5WEBKIT_DEPENDENCIES = \
|
|
|
|
host-bison host-flex host-gperf host-python host-ruby \
|
|
|
|
qt5base sqlite
|
2016-04-13 15:40:35 +02:00
|
|
|
QT5WEBKIT_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
QT5WEBKIT_LICENSE_FILES = Source/WebCore/LICENSE-LGPL-2 Source/WebCore/LICENSE-LGPL-2.1
|
|
|
|
|
2017-03-30 15:43:39 +02:00
|
|
|
QT5WEBKIT_LICENSE = LGPL-2.1+, BSD-3-Clause, BSD-2-Clause
|
2016-04-13 15:40:35 +02:00
|
|
|
# Source files contain references to LGPL_EXCEPTION.txt but it is not included
|
|
|
|
# in the archive.
|
|
|
|
QT5WEBKIT_LICENSE_FILES += LICENSE.LGPLv21
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y)
|
|
|
|
QT5WEBKIT_DEPENDENCIES += xlib_libXext xlib_libXrender
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
|
|
|
|
QT5WEBKIT_DEPENDENCIES += qt5declarative
|
|
|
|
endif
|
|
|
|
|
2016-07-26 00:33:31 +02:00
|
|
|
# QtWebkit's build system uses python, but only supports python2. We work
|
|
|
|
# around this by forcing python2 early in the PATH, via a python->python2
|
|
|
|
# symlink.
|
2016-10-19 16:35:24 +02:00
|
|
|
QT5WEBKIT_ENV = PATH=$(@D)/host-bin:$(BR_PATH)
|
2016-07-26 00:33:31 +02:00
|
|
|
define QT5WEBKIT_PYTHON2_SYMLINK
|
2016-10-19 16:35:24 +02:00
|
|
|
mkdir -p $(@D)/host-bin
|
2017-07-05 13:14:19 +02:00
|
|
|
ln -sf $(HOST_DIR)/bin/python2 $(@D)/host-bin/python
|
2016-07-26 00:33:31 +02:00
|
|
|
endef
|
|
|
|
QT5WEBKIT_PRE_CONFIGURE_HOOKS += QT5WEBKIT_PYTHON2_SYMLINK
|
|
|
|
|
2016-04-13 15:40:35 +02:00
|
|
|
define QT5WEBKIT_CONFIGURE_CMDS
|
2018-03-01 22:34:27 +01:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(HOST_DIR)/bin/qmake)
|
2016-04-13 15:40:35 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define QT5WEBKIT_BUILD_CMDS
|
2016-07-26 00:33:31 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D)
|
2016-04-13 15:40:35 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define QT5WEBKIT_INSTALL_STAGING_CMDS
|
2016-07-26 00:33:31 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D) install
|
2016-04-13 15:40:35 +02:00
|
|
|
$(QT5_LA_PRL_FILES_FIXUP)
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
|
|
|
|
define QT5WEBKIT_INSTALL_TARGET_QMLS
|
|
|
|
cp -dpfr $(STAGING_DIR)/usr/qml/QtWebKit $(TARGET_DIR)/usr/qml/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
define QT5WEBKIT_INSTALL_TARGET_CMDS
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebKit*.so.* $(TARGET_DIR)/usr/lib
|
|
|
|
cp -dpf $(@D)/bin/* $(TARGET_DIR)/usr/bin/
|
|
|
|
$(QT5WEBKIT_INSTALL_TARGET_QMLS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|