diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2016-06-03 10:11:46 +0300 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2016-06-03 10:11:46 +0300 |
| commit | 2746cdba75f411541d80ddfd5cadad2753fe29d3 (patch) | |
| tree | 71b5e49cd3dbe1179a2ff866ee6b7cc0e7fbbd92 /recipes-qt | |
| parent | 6bd7ab491793d92f0942d9d8726873a514302849 (diff) | |
| parent | 27617dde3560e2fe97989670725eb19747a0f48d (diff) | |
| download | meta-qt5-2746cdba75f411541d80ddfd5cadad2753fe29d3.tar.gz | |
Merge remote-tracking branch 'meta-qt5/master' into 5.7
* meta-qt5/master:
qtchooser: add new recipe
qtvirtualkeyboard: add recipe
qtdeclarative-render2d: add recipe
qtdatavis3d: add recipe
qtcharts: add recipe
licenses: update technology preview license to match upstream
cmake_qt5: prepend the Qt5 specific CMake variables to EXTRA_OECMAKE
qtbase: add patch to make Qt5Config modules behave better with cmake builds
qt5: Allow disabling SHA validation for branch
qtbase: Reorder EGL libraries from pkgconfig and defaults:
Change-Id: If0804ddb8c506e6f0d1ec32251cca6620dd97abe
Diffstat (limited to 'recipes-qt')
| -rw-r--r-- | recipes-qt/qt5/qt5-git.inc | 3 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0011-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch | 67 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0011-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch | 98 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 2 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtcharts_git.bb | 11 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtdatavis3d_git.bb | 11 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtdeclarative-render2d_git.bb | 12 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtvirtualkeyboard_git.bb | 11 | ||||
| -rw-r--r-- | recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch | 35 | ||||
| -rw-r--r-- | recipes-qt/qtchooser/qtchooser_git.bb | 30 |
10 files changed, 279 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qt5-git.inc b/recipes-qt/qt5/qt5-git.inc index 0bafab51..e1e25ba7 100644 --- a/recipes-qt/qt5/qt5-git.inc +++ b/recipes-qt/qt5/qt5-git.inc | |||
| @@ -3,10 +3,11 @@ | |||
| 3 | 3 | ||
| 4 | QT_MODULE ?= "${BPN}" | 4 | QT_MODULE ?= "${BPN}" |
| 5 | QT_MODULE_BRANCH ?= "5.7" | 5 | QT_MODULE_BRANCH ?= "5.7" |
| 6 | QT_MODULE_BRANCH_PARAM ?= "branch=${QT_MODULE_BRANCH}" | ||
| 6 | 7 | ||
| 7 | # each module needs to define valid SRCREV | 8 | # each module needs to define valid SRCREV |
| 8 | SRC_URI = " \ | 9 | SRC_URI = " \ |
| 9 | ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};branch=${QT_MODULE_BRANCH};protocol=${QT_GIT_PROTOCOL} \ | 10 | ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};${QT_MODULE_BRANCH_PARAM};protocol=${QT_GIT_PROTOCOL} \ |
| 10 | " | 11 | " |
| 11 | 12 | ||
| 12 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
diff --git a/recipes-qt/qt5/qtbase/0011-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch b/recipes-qt/qt5/qtbase/0011-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch new file mode 100644 index 00000000..7a24459c --- /dev/null +++ b/recipes-qt/qt5/qtbase/0011-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | From f5a949e17aa8b37491fbc414c38557c9920fa1e5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Pascal Bach <pascal.bach@siemens.com> | ||
| 3 | Date: Wed, 11 May 2016 15:20:41 +0200 | ||
| 4 | Subject: [PATCH] Pretend Qt5 wasn't found if OE_QMAKE_PATH_EXTERNAL_HOST_BINS | ||
| 5 | isn't set | ||
| 6 | |||
| 7 | This prevents errors like: | ||
| 8 | |||
| 9 | | The imported target "Qt5::Core" references the file | ||
| 10 | | | ||
| 11 | | "/qmake" | ||
| 12 | | | ||
| 13 | | but this file does not exist. Possible reasons include: | ||
| 14 | |||
| 15 | Which happen if CMake is used without setting OE_QMAKE_PATH_EXTERNAL_HOST_BINS. | ||
| 16 | To achieve this a check for OE_QMAKE_PATH_EXTERNAL_HOST_BINS is added to each Qt5*Config.cmake | ||
| 17 | file. And in the case where the variable is not set we just return which is basically | ||
| 18 | equal to telling CMake that Qt5 wasn't found. | ||
| 19 | |||
| 20 | Upstream-Status: Pending | ||
| 21 | The patch only makes sense in connection with other patches included here. | ||
| 22 | Specifically this are: | ||
| 23 | - 0003-Add-external-hostbindir-option.patch | ||
| 24 | - 0010-Add-external-hostbindir-option-for-native-sdk.patch | ||
| 25 | |||
| 26 | Signed-off-by: Pascal Bach <pascal.bach@siemens.com> | ||
| 27 | |||
| 28 | --- | ||
| 29 | mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | 5 +++++ | ||
| 30 | src/corelib/Qt5Config.cmake.in | 5 +++++ | ||
| 31 | 2 files changed, 10 insertions(+) | ||
| 32 | |||
| 33 | diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | ||
| 34 | index d2358ca..feb73c0 100644 | ||
| 35 | --- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | ||
| 36 | +++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | ||
| 37 | @@ -9,6 +9,11 @@ if (CMAKE_VERSION VERSION_LESS 3.0.0) | ||
| 38 | endif() | ||
| 39 | !!ENDIF | ||
| 40 | |||
| 41 | +if(NOT DEFINED OE_QMAKE_PATH_EXTERNAL_HOST_BINS) | ||
| 42 | + message(WARNING "Skipping because OE_QMAKE_PATH_EXTERNAL_HOST_BINS is not defined") | ||
| 43 | + return() | ||
| 44 | +endif() | ||
| 45 | + | ||
| 46 | !!IF !isEmpty(CMAKE_USR_MOVE_WORKAROUND) | ||
| 47 | !!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE) | ||
| 48 | set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\") | ||
| 49 | diff --git a/src/corelib/Qt5Config.cmake.in b/src/corelib/Qt5Config.cmake.in | ||
| 50 | index a872d0e..233d663 100644 | ||
| 51 | --- a/src/corelib/Qt5Config.cmake.in | ||
| 52 | +++ b/src/corelib/Qt5Config.cmake.in | ||
| 53 | @@ -3,6 +3,11 @@ if (CMAKE_VERSION VERSION_LESS 2.8.9) | ||
| 54 | message(FATAL_ERROR \"Qt5 requires at least CMake version 2.8.9\") | ||
| 55 | endif() | ||
| 56 | |||
| 57 | +if(NOT DEFINED OE_QMAKE_PATH_EXTERNAL_HOST_BINS) | ||
| 58 | + message(WARNING "Skipping because OE_QMAKE_PATH_EXTERNAL_HOST_BINS is not defined") | ||
| 59 | + return() | ||
| 60 | +endif() | ||
| 61 | + | ||
| 62 | if (NOT Qt5_FIND_COMPONENTS) | ||
| 63 | set(Qt5_NOT_FOUND_MESSAGE \"The Qt5 package requires at least one component\") | ||
| 64 | set(Qt5_FOUND False) | ||
| 65 | -- | ||
| 66 | 2.1.4 | ||
| 67 | |||
diff --git a/recipes-qt/qt5/qtbase/0011-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch b/recipes-qt/qt5/qtbase/0011-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch new file mode 100644 index 00000000..3c0b9e61 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0011-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch | |||
| @@ -0,0 +1,98 @@ | |||
| 1 | From d623d2c2ed49c4dc57fb0dde1faab20976dfc3dc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Julien Gueytat <contact@jgueytat.fr> | ||
| 3 | Date: Wed, 27 Apr 2016 19:24:39 +0200 | ||
| 4 | Subject: [PATCH] Reorder EGL libraries from pkgconfig and defaults: | ||
| 5 | |||
| 6 | https://bugreports.qt.io/browse/QTBUG-50838 | ||
| 7 | https://bugreports.qt.io/browse/QTBUG-52739 | ||
| 8 | |||
| 9 | The modification is the less intrusive possible. It only swaps LIBS and QMAKE_LIBS_EGL. | ||
| 10 | The reason behind that was that for the RaspberryPi: | ||
| 11 | * -lEGL -GLESv2 can link | ||
| 12 | * -lGLESv2 -lEGL can't | ||
| 13 | |||
| 14 | Adding -lEGL -lGLESv2 and then -lEGL gives -lGLESv2 -lEGL ... the libraries swaped. | ||
| 15 | |||
| 16 | Signed-off-by: Julien Gueytat <contact@jgueytat.fr> | ||
| 17 | --- | ||
| 18 | config.tests/qpa/egl/egl.pro | 5 ++++- | ||
| 19 | config.tests/qpa/eglfs-brcm/eglfs-brcm.pro | 12 +++++++----- | ||
| 20 | configure | 16 ++++++++++++++-- | ||
| 21 | 3 files changed, 25 insertions(+), 8 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/config.tests/qpa/egl/egl.pro b/config.tests/qpa/egl/egl.pro | ||
| 24 | index b5396da..828b674 100644 | ||
| 25 | --- a/config.tests/qpa/egl/egl.pro | ||
| 26 | +++ b/config.tests/qpa/egl/egl.pro | ||
| 27 | @@ -5,6 +5,9 @@ for(p, QMAKE_LIBDIR_EGL) { | ||
| 28 | } | ||
| 29 | |||
| 30 | !isEmpty(QMAKE_INCDIR_EGL): INCLUDEPATH += $$QMAKE_INCDIR_EGL | ||
| 31 | -!isEmpty(QMAKE_LIBS_EGL): LIBS += $$QMAKE_LIBS_EGL | ||
| 32 | + | ||
| 33 | +BACKUP_LIBS = $$LIBS | ||
| 34 | +!isEmpty(QMAKE_LIBS_EGL): LIBS = $$QMAKE_LIBS_EGL | ||
| 35 | +LIBS += $$BACKUP_LIBS | ||
| 36 | |||
| 37 | CONFIG -= qt | ||
| 38 | diff --git a/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro b/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro | ||
| 39 | index d8b1c3e..06f7241 100644 | ||
| 40 | --- a/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro | ||
| 41 | +++ b/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro | ||
| 42 | @@ -1,11 +1,13 @@ | ||
| 43 | SOURCES = eglfs-brcm.cpp | ||
| 44 | |||
| 45 | -CONFIG -= qt | ||
| 46 | - | ||
| 47 | -INCLUDEPATH += $$QMAKE_INCDIR_EGL | ||
| 48 | - | ||
| 49 | for(p, QMAKE_LIBDIR_EGL) { | ||
| 50 | LIBS += -L$$p | ||
| 51 | } | ||
| 52 | |||
| 53 | -LIBS += -lEGL -lGLESv2 -lbcm_host | ||
| 54 | +INCLUDEPATH += $$QMAKE_INCDIR_EGL | ||
| 55 | + | ||
| 56 | +BACKUP_LIBS = $$LIBS | ||
| 57 | +LIBS = -lEGL -lGLESv2 -lbcm_host | ||
| 58 | +LIBS += $$BACKUP_LIBS | ||
| 59 | + | ||
| 60 | +CONFIG -= qt | ||
| 61 | diff --git a/configure b/configure | ||
| 62 | index 2e99d39..072838b 100755 | ||
| 63 | --- a/configure | ||
| 64 | +++ b/configure | ||
| 65 | @@ -5803,7 +5803,9 @@ if [ "$CFG_EGL" != "no" ]; then | ||
| 66 | QMakeVar set QMAKE_INCDIR_EGL "$QMAKE_INCDIR_EGL" | ||
| 67 | QMakeVar set QMAKE_LIBS_EGL "$QMAKE_LIBS_EGL" | ||
| 68 | QMakeVar set QMAKE_CFLAGS_EGL "`echo " $QMAKE_CFLAGS_EGL " | sed -e 's, -I[^ ]* , ,g;s,^ ,,;s, $,,'`" | ||
| 69 | - fi # detect EGL support | ||
| 70 | + fi | ||
| 71 | + | ||
| 72 | + # detect EGL support | ||
| 73 | if compileTest qpa/egl "EGL" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then | ||
| 74 | CFG_EGL=yes | ||
| 75 | if compileTest qpa/egl-x11 "EGL-X11" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then | ||
| 76 | @@ -5826,8 +5828,18 @@ fi | ||
| 77 | if [ "$CFG_EGLFS" != "no" ]; then | ||
| 78 | if [ "$XPLATFORM_QNX" = "no" ] && [ "$CFG_OPENGL" != "no" ]; then | ||
| 79 | CFG_EGLFS="$CFG_EGL" | ||
| 80 | + | ||
| 81 | + if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists egl 2>/dev/null; then | ||
| 82 | + QMAKE_INCDIR_EGL=`$PKG_CONFIG --cflags-only-I egl 2>/dev/null | sed -e 's,^-I,,g' -e 's, -I, ,g'` | ||
| 83 | + QMAKE_LIBS_EGL=`$PKG_CONFIG --libs egl 2>/dev/null` | ||
| 84 | + QMAKE_CFLAGS_EGL=`$PKG_CONFIG --cflags egl 2>/dev/null` | ||
| 85 | + QMakeVar set QMAKE_INCDIR_EGL "$QMAKE_INCDIR_EGL" | ||
| 86 | + QMakeVar set QMAKE_LIBS_EGL "$QMAKE_LIBS_EGL" | ||
| 87 | + QMakeVar set QMAKE_CFLAGS_EGL "`echo " $QMAKE_CFLAGS_EGL " | sed -e 's, -I[^ ]* , ,g;s,^ ,,;s, $,,'`" | ||
| 88 | + fi | ||
| 89 | + | ||
| 90 | # Detect eglfs backends. | ||
| 91 | - if compileTest qpa/eglfs-brcm "eglfs-brcm"; then | ||
| 92 | + if compileTest qpa/eglfs-brcm "eglfs-brcm" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then | ||
| 93 | CFG_EGLFS_BRCM=yes | ||
| 94 | else | ||
| 95 | CFG_EGLFS_BRCM=no | ||
| 96 | -- | ||
| 97 | 1.9.1 | ||
| 98 | |||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 1f98eec0..d00a3a30 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -19,6 +19,8 @@ SRC_URI += "\ | |||
| 19 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 19 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
| 20 | file://0007-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \ | 20 | file://0007-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \ |
| 21 | file://0008-configure-paths-for-target-qmake-properly.patch \ | 21 | file://0008-configure-paths-for-target-qmake-properly.patch \ |
| 22 | file://0011-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch \ | ||
| 23 | file://0011-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ | ||
| 22 | " | 24 | " |
| 23 | 25 | ||
| 24 | DEPENDS += "qtbase-native" | 26 | DEPENDS += "qtbase-native" |
diff --git a/recipes-qt/qt5/qtcharts_git.bb b/recipes-qt/qt5/qtcharts_git.bb new file mode 100644 index 00000000..5aaddc96 --- /dev/null +++ b/recipes-qt/qt5/qtcharts_git.bb | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | require qt5.inc | ||
| 2 | require qt5-git.inc | ||
| 3 | |||
| 4 | LICENSE = "GPL-3.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 7 | " | ||
| 8 | |||
| 9 | DEPENDS += "qtbase qtdeclarative" | ||
| 10 | |||
| 11 | SRCREV = "8a781841812a42ed728a76c0dcdcaa6196eac44e" | ||
diff --git a/recipes-qt/qt5/qtdatavis3d_git.bb b/recipes-qt/qt5/qtdatavis3d_git.bb new file mode 100644 index 00000000..ccdd1b3e --- /dev/null +++ b/recipes-qt/qt5/qtdatavis3d_git.bb | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | require qt5.inc | ||
| 2 | require qt5-git.inc | ||
| 3 | |||
| 4 | LICENSE = "GPL-3.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 7 | " | ||
| 8 | |||
| 9 | DEPENDS += "qtbase qtdeclarative qtmultimedia qtxmlpatterns" | ||
| 10 | |||
| 11 | SRCREV = "2f6074fde0ec050c77f881e0d2ce265fa93a0fcc" | ||
diff --git a/recipes-qt/qt5/qtdeclarative-render2d_git.bb b/recipes-qt/qt5/qtdeclarative-render2d_git.bb new file mode 100644 index 00000000..cb2ee8bb --- /dev/null +++ b/recipes-qt/qt5/qtdeclarative-render2d_git.bb | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | require qt5.inc | ||
| 2 | require qt5-git.inc | ||
| 3 | |||
| 4 | LICENSE = "GPL-3.0 | The-Qt-Company-TPLA-2.4" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 7 | file://LICENSE.PREVIEW.COMMERCIAL;md5=c458c2ae1b463cca5219eaee54f6287e \ | ||
| 8 | " | ||
| 9 | |||
| 10 | DEPENDS += "qtbase qtdeclarative" | ||
| 11 | |||
| 12 | SRCREV = "13a6c51f26128015c0a3c335bdae676b46df6ed6" | ||
diff --git a/recipes-qt/qt5/qtvirtualkeyboard_git.bb b/recipes-qt/qt5/qtvirtualkeyboard_git.bb new file mode 100644 index 00000000..a8fcb9c3 --- /dev/null +++ b/recipes-qt/qt5/qtvirtualkeyboard_git.bb | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | require qt5.inc | ||
| 2 | require qt5-git.inc | ||
| 3 | |||
| 4 | LICENSE = "GPL-3.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 7 | " | ||
| 8 | |||
| 9 | DEPENDS += "qtbase qtdeclarative qtmultimedia qtquickcontrols qtsvg qtxmlpatterns" | ||
| 10 | |||
| 11 | SRCREV = "42344a4b21b95bce913d60267d554ac17e120af1" | ||
diff --git a/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch b/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch new file mode 100644 index 00000000..8e8e1c69 --- /dev/null +++ b/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 3f142e100cc3dd69b816ce79152760c823cb86e9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
| 3 | Date: Fri, 29 Apr 2016 12:41:34 +0900 | ||
| 4 | Subject: [PATCH] Makefile: install the man dir | ||
| 5 | |||
| 6 | upstream-status: backported | ||
| 7 | |||
| 8 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
| 9 | --- | ||
| 10 | Makefile | 3 +++ | ||
| 11 | 1 file changed, 3 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/Makefile b/Makefile | ||
| 14 | index 20b9100..1fd8cd3 100644 | ||
| 15 | --- a/Makefile | ||
| 16 | +++ b/Makefile | ||
| 17 | @@ -1,5 +1,6 @@ | ||
| 18 | prefix = /usr | ||
| 19 | bindir = $(prefix)/bin | ||
| 20 | +MKDIR = mkdir -p | ||
| 21 | TOOLS = assistant \ | ||
| 22 | designer \ | ||
| 23 | lconvert \ | ||
| 24 | @@ -56,6 +57,8 @@ install: | ||
| 25 | case `uname -s` in Darwin) \ | ||
| 26 | for tool in $(MACTOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done \ | ||
| 27 | ;; esac | ||
| 28 | + $(MKDIR) $(INSTALL_ROOT)$(prefix)/share/man/man1 | ||
| 29 | + install -m 644 -p doc/qtchooser.1 $(INSTALL_ROOT)$(prefix)/share/man/man1 | ||
| 30 | |||
| 31 | uninstall: | ||
| 32 | cd src/qtchooser && $(MAKE) uninstall | ||
| 33 | -- | ||
| 34 | 1.8.4.2 | ||
| 35 | |||
diff --git a/recipes-qt/qtchooser/qtchooser_git.bb b/recipes-qt/qtchooser/qtchooser_git.bb new file mode 100644 index 00000000..68b1c808 --- /dev/null +++ b/recipes-qt/qtchooser/qtchooser_git.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | DESCRIPTION = "Wrapper to select between Qt development binary versions" | ||
| 2 | HOMEPAGE = "http://macieira.org/qtchooser" | ||
| 3 | LICENSE = "LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | GPL-3.0" | ||
| 4 | SRC_URI = "git://code.qt.io/qt/qtchooser.git;branch=master \ | ||
| 5 | file://0001-Makefile-install-the-man-dir.patch" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 10 | file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 11 | " | ||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | SRCREV = "4717841185d34bbe450e3b24445f2d35e3325a6a" | ||
| 14 | PV = "39+git${SRCREV}" | ||
| 15 | |||
| 16 | inherit pkgconfig | ||
| 17 | |||
| 18 | do_compile() { | ||
| 19 | oe_runmake | ||
| 20 | } | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | oe_runmake install INSTALL_ROOT=${D} | ||
| 24 | #install configure file | ||
| 25 | install -d ${D}${sysconfdir}/xdg/qtchooser/ | ||
| 26 | install -m 0644 ${S}/tests/auto/qtchooser/testdata/config2/qtchooser/*.conf \ | ||
| 27 | ${D}${sysconfdir}/xdg/qtchooser/ | ||
| 28 | install -m 0644 ${S}/tests/auto/qtchooser/testdata/default/qtchooser/default.conf \ | ||
| 29 | ${D}${sysconfdir}/xdg/qtchooser/ | ||
| 30 | } | ||
