board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / qt5 / qt5webkit / qt5webkit.mk
blob980d2aff01674b8e2d78febb3447fdbd0ff77447
1 ################################################################################
3 # qt5webkit
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 \
12 qt5base sqlite
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
20 # in the archive.
21 QT5WEBKIT_LICENSE_FILES += LICENSE.LGPLv21
22 else
23 QT5WEBKIT_LICENSE = LGPLv2.1+ (WebCore), Commercial license
24 QT5WEBKIT_REDISTRIBUTE = NO
25 endif
27 ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y)
28 QT5WEBKIT_DEPENDENCIES += xlib_libXext xlib_libXrender
29 endif
31 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
32 QT5WEBKIT_DEPENDENCIES += qt5declarative
33 endif
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
37 # symlink.
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
42 endef
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)
47 endef
49 define QT5WEBKIT_BUILD_CMDS
50 $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D)
51 endef
53 define QT5WEBKIT_INSTALL_STAGING_CMDS
54 $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D) install
55 $(QT5_LA_PRL_FILES_FIXUP)
56 endef
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/
61 endef
62 endif
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)
68 endef
70 $(eval $(generic-package))