~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to debian/patches/01_makefiles.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-03-08 15:34:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070308153442-528uskj6kehfi547
Tags: 5.0.1-2
* Enable QwtSVGItem.
* Add QwtPlotScaleItem from svn revision 65.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 01_makefiles.dpatch by Gudjon I. Gudjonsson <gudjon@mc2-m038.mc2.chalmers.se>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Changes to Qt-makefiles (.pro). Install into right directories and 
 
6
## DP: postfix to library names.~
 
7
 
 
8
@DPATCH@
 
9
diff -urNad qwt-5.0.1~/qwt-5.0.1/designer/designer.pro qwt-5.0.1/qwt-5.0.1/designer/designer.pro
 
10
--- qwt-5.0.1~/qwt-5.0.1/designer/designer.pro  2007-02-26 21:22:14.000000000 +0100
 
11
+++ qwt-5.0.1/qwt-5.0.1/designer/designer.pro   2007-03-08 15:40:29.000000000 +0100
 
12
@@ -30,7 +30,7 @@
 
13
         DEFINES += NO_QWT_WIDGETS
 
14
     }
 
15
 
 
16
-    unix:LIBS      += -L../lib -lqwt
 
17
+    #unix:LIBS      += -L../lib -lqwt
 
18
     win32-msvc:LIBS  += ../lib/qwt5.lib
 
19
     win32-msvc.net:LIBS  += ../lib/qwt5.lib
 
20
     win32-msvc2005:LIBS += ../lib/qwt5.lib
 
21
@@ -40,7 +40,10 @@
 
22
 
 
23
     VVERSION = $$[QT_VERSION]
 
24
     isEmpty(VVERSION) {
 
25
-        # Qt 3 
 
26
+        # Qt 3
 
27
+
 
28
+       unix:LIBS      += -L../lib -lqwt-qt3
 
29
+
 
30
         TARGET    = qwtplugin
 
31
         CONFIG   += qt plugin
 
32
 
 
33
@@ -49,7 +52,8 @@
 
34
         HEADERS  += qwtplugin.h
 
35
         SOURCES  += qwtplugin.cpp
 
36
 
 
37
-        target.path = $(QTDIR)/plugins/designer
 
38
+        #target.path = $(QTDIR)/plugins/designer
 
39
+       target.path = /usr/lib/qt3/plugins/designer
 
40
         INSTALLS += target
 
41
 
 
42
         IMAGES  += \
 
43
@@ -69,6 +73,8 @@
 
44
 
 
45
         # Qt 4
 
46
 
 
47
+        unix:LIBS      += -L../lib -lqwt-qt4
 
48
+
 
49
         TARGET    = qwt_designer_plugin
 
50
         CONFIG    += qt designer plugin 
 
51
 
 
52
@@ -92,7 +98,8 @@
 
53
         RESOURCES += \
 
54
             qwt_designer_plugin.qrc
 
55
 
 
56
-        target.path = $$[QT_INSTALL_PLUGINS]/designer
 
57
+        #target.path = $$[QT_INSTALL_PLUGINS]/designer
 
58
+       target.path = /usr/lib/qt4/plugins/designer
 
59
         INSTALLS += target
 
60
     }
 
61
 
 
62
diff -urNad qwt-5.0.1~/qwt-5.0.1/examples/examples.pri qwt-5.0.1/qwt-5.0.1/examples/examples.pri
 
63
--- qwt-5.0.1~/qwt-5.0.1/examples/examples.pri  2007-02-26 21:22:14.000000000 +0100
 
64
+++ qwt-5.0.1/qwt-5.0.1/examples/examples.pri   2007-03-08 15:40:29.000000000 +0100
 
65
@@ -13,10 +13,27 @@
 
66
 
 
67
 MOC_DIR      = moc
 
68
 OBJECTS_DIR  = obj
 
69
-INCLUDEPATH += ../../src
 
70
-DEPENDPATH  += ../../src
 
71
+#INCLUDEPATH += ../../src
 
72
+#DEPENDPATH  += ../../src
 
73
 
 
74
-unix:LIBS        += -L../../lib -lqwt
 
75
+#unix:LIBS        += -L../../lib -lqwt
 
76
+
 
77
+VVERSION = $$[QT_VERSION]
 
78
+isEmpty(VVERSION) {
 
79
+    # Qt 3
 
80
+
 
81
+    INCLUDEPATH += /usr/include/qwt-qt3
 
82
+    DEPENDPATH  += /usr/include/qwt-qt3
 
83
+    unix:LIBS   +=  -lqwt-qt3
 
84
+
 
85
+} else {
 
86
+    # Qt 4
 
87
+
 
88
+    INCLUDEPATH += /usr/include/qwt-qt4
 
89
+    DEPENDPATH  += /usr/include/qwt-qt4
 
90
+    unix:LIBS   +=  -lqwt-qt4
 
91
+
 
92
+}
 
93
 
 
94
 win32:QwtDll {
 
95
     DEFINES    += QT_DLL QWT_DLL
 
96
diff -urNad qwt-5.0.1~/qwt-5.0.1/examples/examples.pro qwt-5.0.1/qwt-5.0.1/examples/examples.pro
 
97
--- qwt-5.0.1~/qwt-5.0.1/examples/examples.pro  2007-02-26 21:22:14.000000000 +0100
 
98
+++ qwt-5.0.1/qwt-5.0.1/examples/examples.pro   2007-03-08 15:40:29.000000000 +0100
 
99
@@ -7,7 +7,9 @@
 
100
 # modify it under the terms of the Qwt License, Version 1.0
 
101
 ###################################################################
 
102
 
 
103
-include( ../qwtconfig.pri )
 
104
+#include( ../qwtconfig.pri )
 
105
+include( examples.pri )
 
106
+include( qwtconfig.pri )
 
107
 
 
108
 TEMPLATE = subdirs
 
109
 
 
110
diff -urNad qwt-5.0.1~/qwt-5.0.1/qwtconfig.pri qwt-5.0.1/qwt-5.0.1/qwtconfig.pri
 
111
--- qwt-5.0.1~/qwt-5.0.1/qwtconfig.pri  2007-02-26 21:22:14.000000000 +0100
 
112
+++ qwt-5.0.1/qwt-5.0.1/qwtconfig.pri   2007-03-08 15:40:48.000000000 +0100
 
113
@@ -3,7 +3,8 @@
 
114
 ######################################################################
 
115
 
 
116
 unix {
 
117
-    INSTALLBASE    = /usr/local/qwt
 
118
+    #INSTALLBASE    = /usr/local/qwt
 
119
+    INSTALLBASE    = /usr
 
120
 }
 
121
 
 
122
 win32 {
 
123
@@ -11,8 +12,21 @@
 
124
 }
 
125
 
 
126
 target.path    = $$INSTALLBASE/lib
 
127
-headers.path   = $$INSTALLBASE/include
 
128
-doc.path       = $$INSTALLBASE/doc
 
129
+#headers.path   = $$INSTALLBASE/include
 
130
+VVERSION = $$[QT_VERSION]
 
131
+isEmpty(VVERSION) {
 
132
+    # Qt 3
 
133
+
 
134
+    headers.path   = $$INSTALLBASE/include/qwt-qt3
 
135
+
 
136
+} else {
 
137
+    # Qt 4
 
138
+
 
139
+    headers.path   = $$INSTALLBASE/include/qwt-qt4
 
140
+
 
141
+}
 
142
+#doc.path       = $$INSTALLBASE/doc
 
143
+doc.path       = $$INSTALLBASE/share/doc/libqwt5-doc
 
144
 
 
145
 ######################################################################
 
146
 # qmake internal options
 
147
@@ -58,7 +72,7 @@
 
148
 # QwtSVGItem.
 
149
 ######################################################################
 
150
 
 
151
-#CONFIG     += QwtSVGItem
 
152
+CONFIG     += QwtSVGItem
 
153
 
 
154
 ######################################################################
 
155
 # If you have a commercial license you can use the MathML renderer
 
156
diff -urNad qwt-5.0.1~/qwt-5.0.1/src/src.pro qwt-5.0.1/qwt-5.0.1/src/src.pro
 
157
--- qwt-5.0.1~/qwt-5.0.1/src/src.pro    2007-02-26 21:22:14.000000000 +0100
 
158
+++ qwt-5.0.1/qwt-5.0.1/src/src.pro     2007-03-08 15:40:29.000000000 +0100
 
159
@@ -11,7 +11,20 @@
 
160
 
 
161
 include( ../qwtconfig.pri )
 
162
 
 
163
-TARGET            = qwt
 
164
+#TARGET            = qwt
 
165
+VVERSION = $$[QT_VERSION]
 
166
+isEmpty(VVERSION) {
 
167
+    # Qt 3
 
168
+
 
169
+    TARGET            = qwt-qt3
 
170
+
 
171
+} else {
 
172
+
 
173
+    # Qt 4
 
174
+
 
175
+    TARGET            = qwt-qt4
 
176
+
 
177
+}
 
178
 TEMPLATE          = lib
 
179
 
 
180
 VERSION      = 5.0.0