1 ################################################################################
5 ################################################################################
7 QT5WEBKIT_VERSION
= $(QT5_VERSION
)
8 QT5WEBKIT_SITE
= $(QT5_SNAPSHOTS_SITE
)
9 QT5WEBKIT_SOURCE
= qtwebkit-opensource-src-
$(QT5WEBKIT_VERSION
).
tar.xz
10 QT5WEBKIT_DEPENDENCIES
= \
11 host-bison host-flex host-gperf host-python host-ruby \
13 QT5WEBKIT_INSTALL_STAGING
= YES
15 QT5WEBKIT_LICENSE_FILES
= Source
/WebCore
/LICENSE-LGPL-2 Source
/WebCore
/LICENSE-LGPL-2.1
17 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
),y
)
18 QT5WEBKIT_LICENSE
= LGPLv2.1
+, BSD-3c
, BSD-2c
19 # Source files contain references to LGPL_EXCEPTION.txt but it is not included
21 QT5WEBKIT_LICENSE_FILES
+= LICENSE.LGPLv21
23 QT5WEBKIT_LICENSE
= LGPLv2.1
+ (WebCore
), Commercial license
24 QT5WEBKIT_REDISTRIBUTE
= NO
27 ifeq ($(BR2_PACKAGE_QT5BASE_XCB
),y
)
28 QT5WEBKIT_DEPENDENCIES
+= xlib_libXext xlib_libXrender
31 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
32 QT5WEBKIT_DEPENDENCIES
+= qt5declarative
35 # QtWebkit's build system uses python, but only supports python2. We work
36 # around this by forcing python2 early in the PATH, via a python->python2
38 QT5WEBKIT_ENV
= PATH
=$(@D
)/host-bin
:$(BR_PATH
)
39 define QT5WEBKIT_PYTHON2_SYMLINK
40 mkdir
-p
$(@D
)/host-bin
41 ln
-sf
$(HOST_DIR
)/usr
/bin
/python2
$(@D
)/host-bin
/python
43 QT5WEBKIT_PRE_CONFIGURE_HOOKS
+= QT5WEBKIT_PYTHON2_SYMLINK
45 define QT5WEBKIT_CONFIGURE_CMDS
46 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(QT5WEBKIT_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
49 define QT5WEBKIT_BUILD_CMDS
50 $(TARGET_MAKE_ENV
) $(QT5WEBKIT_ENV
) $(MAKE
) -C
$(@D
)
53 define QT5WEBKIT_INSTALL_STAGING_CMDS
54 $(TARGET_MAKE_ENV
) $(QT5WEBKIT_ENV
) $(MAKE
) -C
$(@D
) install
55 $(QT5_LA_PRL_FILES_FIXUP
)
58 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK
),y
)
59 define QT5WEBKIT_INSTALL_TARGET_QMLS
60 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/QtWebKit
$(TARGET_DIR
)/usr
/qml
/
64 define QT5WEBKIT_INSTALL_TARGET_CMDS
65 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5WebKit
*.so.
* $(TARGET_DIR
)/usr
/lib
66 cp
-dpf
$(@D
)/bin
/* $(TARGET_DIR
)/usr
/bin
/
67 $(QT5WEBKIT_INSTALL_TARGET_QMLS
)
70 $(eval
$(generic-package
))