42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
|
Index: qwt-6.2.0/src/src.pro
|
||
|
===================================================================
|
||
|
--- qwt-6.2.0.orig/src/src.pro
|
||
|
+++ qwt-6.2.0/src/src.pro
|
||
|
@@ -82,14 +82,31 @@ contains(QWT_CONFIG, QwtPkgConfig) {
|
||
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||
|
|
||
|
QMAKE_PKGCONFIG_FILE = Qt$${QT_MAJOR_VERSION}$${QMAKE_PKGCONFIG_NAME}
|
||
|
- QMAKE_PKGCONFIG_REQUIRES = Qt5Widgets Qt5Concurrent Qt5PrintSupport
|
||
|
|
||
|
- contains(QWT_CONFIG, QwtSvg) {
|
||
|
- QMAKE_PKGCONFIG_REQUIRES += Qt5Svg
|
||
|
+ isEqual(QT_MAJOR_VERSION, 5) {
|
||
|
+
|
||
|
+ QMAKE_PKGCONFIG_REQUIRES = Qt5Widgets Qt5Concurrent Qt5PrintSupport
|
||
|
+
|
||
|
+ contains(QWT_CONFIG, QwtSvg) {
|
||
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt5Svg
|
||
|
+ }
|
||
|
+
|
||
|
+ contains(QWT_CONFIG, QwtOpenGL) {
|
||
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt5OpenGL
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
- contains(QWT_CONFIG, QwtOpenGL) {
|
||
|
- QMAKE_PKGCONFIG_REQUIRES += Qt5OpenGL
|
||
|
+ isEqual(QT_MAJOR_VERSION, 6) {
|
||
|
+
|
||
|
+ QMAKE_PKGCONFIG_REQUIRES = Qt6Widgets Qt6Concurrent Qt6PrintSupport
|
||
|
+
|
||
|
+ contains(QWT_CONFIG, QwtSvg) {
|
||
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt6Svg
|
||
|
+ }
|
||
|
+
|
||
|
+ contains(QWT_CONFIG, QwtOpenGL) {
|
||
|
+ QMAKE_PKGCONFIG_REQUIRES += Qt6OpenGL
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
QMAKE_DISTCLEAN += $${DESTDIR}/$${QMAKE_PKGCONFIG_DESTDIR}/$${QMAKE_PKGCONFIG_FILE}.pc
|