summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch')
-rw-r--r--recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch56
1 files changed, 19 insertions, 37 deletions
diff --git a/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch
index 833c9b59..b8768c89 100644
--- a/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch
+++ b/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch
@@ -1,4 +1,4 @@
1From 1f9449f851f7ec288948ec8e83f2fe4b0b37e789 Mon Sep 17 00:00:00 2001 1From 7999eeb3f2ab1150aa301ec26ae9bf0788d09c9e Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 23:15:37 +0200 3Date: Sat, 27 Apr 2013 23:15:37 +0200
4Subject: [PATCH 05/14] qt_module: Fix pkgconfig replacement 4Subject: [PATCH 05/14] qt_module: Fix pkgconfig replacement
@@ -43,60 +43,42 @@ Content-Transfer-Encoding: 8bit
43Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 43Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
44Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> 44Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
45--- 45---
46 mkspecs/features/qt_module.prf | 43 ++++++++++++++++++++++++++++++------------ 46 mkspecs/features/qt_module.prf | 20 +++++++++++++-------
47 1 file changed, 31 insertions(+), 12 deletions(-) 47 1 file changed, 13 insertions(+), 7 deletions(-)
48 48
49diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf 49diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
50index 11509ee..2f95684 100644 50index 11509ee..be9b929 100644
51--- a/mkspecs/features/qt_module.prf 51--- a/mkspecs/features/qt_module.prf
52+++ b/mkspecs/features/qt_module.prf 52+++ b/mkspecs/features/qt_module.prf
53@@ -135,30 +135,49 @@ load(qt_installs) 53@@ -135,30 +135,36 @@ load(qt_installs)
54 rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]* 54 rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]*
55 else: \ 55 else: \
56 rplbase = $$MODULE_BASE_OUTDIR 56 rplbase = $$MODULE_BASE_OUTDIR
57-include_replace.match = $$rplbase/include 57-include_replace.match = $$rplbase/include
58-include_replace.replace = $$[QT_INSTALL_HEADERS/raw] 58-include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
59-include_replace.CONFIG = path 59-include_replace.CONFIG = path
60-lib_replace.match = $$rplbase/lib
61-host_build: \
62- lib_replace.replace = $$[QT_HOST_LIBS]
63-else: \
64+pkgconfig_include_replace.match = $$rplbase/include 60+pkgconfig_include_replace.match = $$rplbase/include
65+pkgconfig_include_replace.replace = "\$$\\{includedir}" 61+pkgconfig_include_replace.replace = "\$$\\{includedir}"
62+pkgconfig_include_replace.CONFIG = path
66+pkgconfig_lib_replace.match = $$rplbase/lib 63+pkgconfig_lib_replace.match = $$rplbase/lib
67+pkgconfig_lib_replace.replace = "\$$\\{libdir}" 64+pkgconfig_lib_replace.replace = "\$$\\{libdir}"
68+!exists($$[QT_SYSROOT]) { 65+pkgconfig_lib_replace.CONFIG = path
69+ include_replace.match = $$rplbase/include 66 lib_replace.match = $$rplbase/lib
70+ include_replace.replace = $$[QT_INSTALL_HEADERS/raw] 67 host_build: \
71+ include_replace.CONFIG = path 68 lib_replace.replace = $$[QT_HOST_LIBS]
72+ lib_replace.match = $$rplbase/lib 69 else: \
73 lib_replace.replace = $$[QT_INSTALL_LIBS/raw] 70 lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
74-lib_replace.CONFIG = path 71 lib_replace.CONFIG = path
75+ lib_replace.CONFIG = path 72-QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
76+ lafile_replace.match = $$rplbase 73+lafile_replace.match = "-L$$[QT_INSTALL_LIBS/raw]"
77+ lafile_replace.replace = "$$[QT_INSTALL_PREFIX/raw]" 74+lafile_replace.replace = ""
78+} else { 75+lafile_replace.CONFIG = path
79+ # include_replace and lib_replace are duplicate, but we don't want to 76+QMAKE_PRL_INSTALL_REPLACE += lib_replace lafile_replace
80+ # make QMAKE_PKGCONFIG_INSTALL_REPLACE, QMAKE_PRL_INSTALL_REPLACE conditional
81+ include_replace.match = $$rplbase
82+ include_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
83+ include_replace.CONFIG = path
84+ lib_replace.match = $$rplbase
85+ lib_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
86+ lib_replace.CONFIG = path
87+ lafile_replace.match = $$rplbase
88+ lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
89+}
90 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
91 77
92 unix|win32-g++* { 78 unix|win32-g++* {
93 CONFIG += create_pc 79 CONFIG += create_pc
94- QMAKE_PKGCONFIG_LIBDIR = $$lib_replace.replace 80 QMAKE_PKGCONFIG_LIBDIR = $$lib_replace.replace
95- QMAKE_PKGCONFIG_INCDIR = $$include_replace.replace 81- QMAKE_PKGCONFIG_INCDIR = $$include_replace.replace
96+ host_build: \
97+ QMAKE_PKGCONFIG_LIBDIR = $$[QT_HOST_LIBS]
98+ else: \
99+ QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS/raw]
100+ QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw] 82+ QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw]
101 QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME 83 QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME
102 QMAKE_PKGCONFIG_DESTDIR = pkgconfig 84 QMAKE_PKGCONFIG_DESTDIR = pkgconfig
@@ -108,7 +90,7 @@ index 11509ee..2f95684 100644
108 CONFIG += create_libtool explicitlib 90 CONFIG += create_libtool explicitlib
109 QMAKE_LIBTOOL_LIBDIR = $$lib_replace.replace 91 QMAKE_LIBTOOL_LIBDIR = $$lib_replace.replace
110- QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace 92- QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
111+ QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace lafile_replace 93+ QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace lafile_replace
112 } 94 }
113 95
114 unix|win32-g++* { 96 unix|win32-g++* {