summaryrefslogtreecommitdiff
path: root/devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf
diff options
context:
space:
mode:
Diffstat (limited to 'devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf')
-rw-r--r--devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf38
1 files changed, 32 insertions, 6 deletions
diff --git a/devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf b/devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf
index ebca55108e98..06c6b32f36ba 100644
--- a/devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf
+++ b/devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf
@@ -1,22 +1,48 @@
-The first hunk fixes the install location of the pkconfig files:
+The first hunk puts the catch-all { *; } first in version scripts
+so it has lowest priority when a symbol matches multiple patterns.
+
+The second hunk fixes the install location of the pkconfig files:
FreeBSD installs pkgconfig files to $LOCALBASE/libdata/pkgconfig
qmake uses QMAKE_PKGCONFIG_DESTDIR as relative path to $$QT_LIBDIR.
As this is now '${PREFIX}/lib/qt5' we need to go up two levels.
-The second hunk stops qmake from generating la files.
+The third hunk stops qmake from generating la files.
---- mkspecs/features/qt_module.prf.orig 2016-09-16 05:49:42 UTC
+--- mkspecs/features/qt_module.prf.orig 2018-12-03 11:15:26 UTC
+++ mkspecs/features/qt_module.prf
-@@ -247,7 +247,7 @@ load(qt_targets)
+@@ -217,17 +217,18 @@ android: CONFIG += qt_android_deps no_linker_version_s
+ internal_module {
+ verscript_content = "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API { *; };"
+ } else {
+- verscript_content = "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API {" \
+- " qt_private_api_tag*;"
++ current = Qt_$$QT_MAJOR_VERSION
++ verscript_content = "$$current { *; };"
+
++ verscript_content += "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API {" \
++ " qt_private_api_tag*;"
++
+ private_api_headers = $$SYNCQT.PRIVATE_HEADER_FILES $$SYNCQT.QPA_HEADER_FILES
+
+ for(header, private_api_headers): \
+ verscript_content += " @FILE:$$header@"
+ verscript_content += "};"
+
+- current = Qt_$$QT_MAJOR_VERSION
+- verscript_content += "$$current { *; };"
+ isEmpty(QT_NAMESPACE): tag_symbol = qt_version_tag
+ else: tag_symbol = qt_version_tag_$$QT_NAMESPACE
+
+@@ -266,7 +267,7 @@ load(qt_targets)
# this builds on top of qt_common
- !internal_module:!lib_bundle:if(unix|mingw) {
+ !internal_module:if(unix|mingw) {
CONFIG += create_pc
- QMAKE_PKGCONFIG_DESTDIR = pkgconfig
+ QMAKE_PKGCONFIG_DESTDIR = ../../libdata/pkgconfig
host_build: \
QMAKE_PKGCONFIG_LIBDIR = $$[QT_HOST_LIBS]
else: \
-@@ -267,7 +267,6 @@ load(qt_targets)
+@@ -291,7 +292,6 @@ load(qt_targets)
QMAKE_PKGCONFIG_INSTALL_REPLACE += pclib_replace
}
!lib_bundle:unix {