summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-qt/qt5/qtimageformats.inc16
-rw-r--r--recipes-qt/qt5/qtimageformats/0001-qtimageformats.pro-Make-the-dependencies-determinist.patch31
2 files changed, 46 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtimageformats.inc b/recipes-qt/qt5/qtimageformats.inc
index b5edf1ba..93060703 100644
--- a/recipes-qt/qt5/qtimageformats.inc
+++ b/recipes-qt/qt5/qtimageformats.inc
@@ -1,8 +1,22 @@
1require qt5.inc 1require qt5.inc
2 2
3DEPENDS += "qtbase tiff" 3DEPENDS += "qtbase"
4ALLOW_EMPTY_${PN} = "1" 4ALLOW_EMPTY_${PN} = "1"
5 5
6SRC_URI += "file://0001-qtimageformats.pro-Make-the-dependencies-determinist.patch"
7
8PACKAGECONFIG ?= "libtiff"
9# Currently we don't have recipe for libmng, but lock it anyway so qtimageformats stay deterministic even when libmng is introduced
10PACKAGECONFIG[jasper] = ",,jasper"
11PACKAGECONFIG[libmng] = ",,libmng"
12PACKAGECONFIG[libtiff] = ",,tiff"
13PACKAGECONFIG[libwebp] = ",,libwebp"
14
15EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libmng', 'CONFIG+=OE_LIBMNG_ENABLED', '', d)}"
16EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'jasper', 'CONFIG+=OE_JASPER_ENABLED', '', d)}"
17EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libtiff', 'CONFIG+=OE_LIBTIFF_ENABLED', '', d)}"
18EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libwebp', 'CONFIG+=OE_LIBWEBP_ENABLED', '', d)}"
19
6# older copyright year than what e.g. qtbase is using now 20# older copyright year than what e.g. qtbase is using now
7LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ 21LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \
8 file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ 22 file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
diff --git a/recipes-qt/qt5/qtimageformats/0001-qtimageformats.pro-Make-the-dependencies-determinist.patch b/recipes-qt/qt5/qtimageformats/0001-qtimageformats.pro-Make-the-dependencies-determinist.patch
new file mode 100644
index 00000000..d12851f9
--- /dev/null
+++ b/recipes-qt/qt5/qtimageformats/0001-qtimageformats.pro-Make-the-dependencies-determinist.patch
@@ -0,0 +1,31 @@
1From f309b1e149764a193cbfc694973083e70b5f4a7e Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 4 Aug 2014 19:19:05 +0200
4Subject: [PATCH] qtimageformats.pro: Make the dependencies deterministic
5
6Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7---
8 qtimageformats.pro | 8 ++++----
9 1 file changed, 4 insertions(+), 4 deletions(-)
10
11diff --git a/qtimageformats.pro b/qtimageformats.pro
12index 8382e5c..63d13ce 100644
13--- a/qtimageformats.pro
14+++ b/qtimageformats.pro
15@@ -1,9 +1,9 @@
16 requires(qtHaveModule(gui))
17
18 load(configure)
19-qtCompileTest(jasper)
20-qtCompileTest(libmng)
21-qtCompileTest(libtiff)
22-qtCompileTest(libwebp)
23+OE_JASPER_ENABLED:qtCompileTest(jasper)
24+OE_LIBMNG_ENABLED:qtCompileTest(libmng)
25+OE_LIBTIFF_ENABLED:qtCompileTest(libtiff)
26+OE_LIBWEBP_ENABLED:qtCompileTest(libwebp)
27
28 load(qt_parts)
29--
302.0.4
31