summaryrefslogtreecommitdiff
path: root/libraries/qwtpolar/qwtpolar-1.1.1-qt5.patch
blob: 438bb44276f13e15d53e15d5a72000e2a6eadd55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- ../src/src.pro.orig	2018-09-17 17:15:25.091000000 +1000
+++ ../src/src.pro	2018-09-17 17:27:50.284000000 +1000
@@ -14,7 +14,12 @@
 include( $${QWT_POLAR_ROOT}/qwtpolarfunctions.pri )
 
 TEMPLATE          = lib
-TARGET            = $$qwtPolarLibraryTarget(qwtpolar)
+greaterThan(QT_MAJOR_VERSION, 4) {
+    TARGET            = $$qwtPolarLibraryTarget(qwtpolar-qt5)
+}
+else {
+    TARGET            = $$qwtPolarLibraryTarget(qwtpolar)
+}
 
 # pkgconfig support
 CONFIG     += create_pc create_prl no_install_prl
--- ../designer/designer.pro.orig	2014-09-19 20:28:24.313002267 +1000
+++ ../designer/designer.pro	2018-09-17 17:32:26.175000000 +1000
@@ -60,7 +60,12 @@
         LIBS      += -L$${QWT_POLAR_ROOT}/lib
     }
 
-    qwtPolarAddLibrary(qwtpolar)
+    greaterThan(QT_MAJOR_VERSION, 4) {
+        qwtPolarAddLibrary(qwtpolar-qt5)
+    }
+    else {
+        qwtPolarAddLibrary(qwtpolar)
+    }
 
     contains(CONFIG, QwtPolarDll) {