aboutsummaryrefslogtreecommitdiff
path: root/devel/qscintilla2-qt5/files/patch-Qt4Qt5_features_qscintilla2.prf
blob: a286e14b814f7ae450d43d2945485dd84b4fd40a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
The Qt5 version of QScintilla is called libqscintilla2-qt5.so.
Make it be referenced this way by Qt's build system.
--- Qt4Qt5/features/qscintilla2.prf.orig	2015-04-20 14:38:24 UTC
+++ Qt4Qt5/features/qscintilla2.prf
@@ -17,9 +17,17 @@ CONFIG(debug, debug|release) {
         win32: {
             LIBS += -lqscintilla2d
         } else {
-            LIBS += -lqscintilla2
+            greaterThan(QT_MAJOR_VERSION, 4) {
+                LIBS += -lqscintilla2-qt$${QT_MAJOR_VERSION}
+            } else {
+                LIBS += -lqscintilla2
+            }
         }
     }
 } else {
-    LIBS += -lqscintilla2
+    greaterThan(QT_MAJOR_VERSION, 4) {
+        LIBS += -lqscintilla2-qt$${QT_MAJOR_VERSION}
+    } else {
+        LIBS += -lqscintilla2
+    }
 }