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

« back to all changes in this revision

Viewing changes to debian/patches/01_makefiles.diff

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- qwt-5.0.2.orig/qwt-5.0.2/designer/designer.pro
 
2
+++ qwt-5.0.2/qwt-5.0.2/designer/designer.pro
 
3
@@ -30,7 +30,6 @@
 
4
         DEFINES += NO_QWT_WIDGETS
 
5
     }
 
6
 
 
7
-    unix:LIBS      += -L../lib -lqwt
 
8
     win32-msvc:LIBS  += ../lib/qwt5.lib
 
9
     win32-msvc.net:LIBS  += ../lib/qwt5.lib
 
10
     win32-msvc2005:LIBS += ../lib/qwt5.lib
 
11
@@ -41,6 +40,9 @@
 
12
     VVERSION = $$[QT_VERSION]
 
13
     isEmpty(VVERSION) {
 
14
         # Qt 3 
 
15
+
 
16
+        unix:LIBS      += -L../lib -lqwt-qt3
 
17
+
 
18
         TARGET    = qwtplugin
 
19
         CONFIG   += qt plugin
 
20
 
 
21
@@ -49,7 +51,7 @@
 
22
         HEADERS  += qwtplugin.h
 
23
         SOURCES  += qwtplugin.cpp
 
24
 
 
25
-        target.path = $(QTDIR)/plugins/designer
 
26
+        target.path = /usr/lib/qt3/plugins/designer
 
27
         INSTALLS += target
 
28
 
 
29
         IMAGES  += \
 
30
@@ -69,6 +71,8 @@
 
31
 
 
32
         # Qt 4
 
33
 
 
34
+        unix:LIBS      += -L../lib -lqwt-qt4
 
35
+
 
36
         TARGET    = qwt_designer_plugin
 
37
         CONFIG    += qt designer plugin 
 
38
 
 
39
@@ -92,7 +96,7 @@
 
40
         RESOURCES += \
 
41
             qwt_designer_plugin.qrc
 
42
 
 
43
-        target.path = $$[QT_INSTALL_PLUGINS]/designer
 
44
+        target.path = /usr/lib/qt4/plugins/designer
 
45
         INSTALLS += target
 
46
     }
 
47
 
 
48
--- qwt-5.0.2.orig/qwt-5.0.2/examples/examples.pri
 
49
+++ qwt-5.0.2/qwt-5.0.2/examples/examples.pri
 
50
@@ -13,10 +13,23 @@
 
51
 
 
52
 MOC_DIR      = moc
 
53
 OBJECTS_DIR  = obj
 
54
-INCLUDEPATH += ../../src
 
55
-DEPENDPATH  += ../../src
 
56
 
 
57
-unix:LIBS        += -L../../lib -lqwt
 
58
+VVERSION = $$[QT_VERSION]
 
59
+isEmpty(VVERSION) {
 
60
+    # Qt 3
 
61
+
 
62
+    INCLUDEPATH += /usr/include/qwt-qt3
 
63
+    DEPENDPATH  += /usr/include/qwt-qt3
 
64
+    unix:LIBS   +=  -lqwt-qt3
 
65
+
 
66
+} else {
 
67
+    # Qt 4
 
68
+
 
69
+    INCLUDEPATH += /usr/include/qwt-qt4
 
70
+    DEPENDPATH  += /usr/include/qwt-qt4
 
71
+    unix:LIBS   +=  -lqwt-qt4
 
72
+
 
73
+}
 
74
 
 
75
 win32:QwtDll {
 
76
     DEFINES    += QT_DLL QWT_DLL
 
77
--- qwt-5.0.2.orig/qwt-5.0.2/examples/examples.pro
 
78
+++ qwt-5.0.2/qwt-5.0.2/examples/examples.pro
 
79
@@ -7,7 +7,8 @@
 
80
 # modify it under the terms of the Qwt License, Version 1.0
 
81
 ###################################################################
 
82
 
 
83
-include( ../qwtconfig.pri )
 
84
+include( examples.pri )
 
85
+include( qwtconfig.pri )
 
86
 
 
87
 TEMPLATE = subdirs
 
88
 
 
89
--- qwt-5.0.2.orig/qwt-5.0.2/qwtconfig.pri
 
90
+++ qwt-5.0.2/qwt-5.0.2/qwtconfig.pri
 
91
@@ -3,7 +3,7 @@
 
92
 ######################################################################
 
93
 
 
94
 unix {
 
95
-    INSTALLBASE    = /usr/local/qwt-5.0.2
 
96
+    INSTALLBASE    = /usr
 
97
 }
 
98
 
 
99
 win32 {
 
100
@@ -11,8 +11,19 @@
 
101
 }
 
102
 
 
103
 target.path    = $$INSTALLBASE/lib
 
104
-headers.path   = $$INSTALLBASE/include
 
105
-doc.path       = $$INSTALLBASE/doc
 
106
+VVERSION = $$[QT_VERSION]
 
107
+isEmpty(VVERSION) {
 
108
+    # Qt 3
 
109
+
 
110
+    headers.path   = $$INSTALLBASE/include/qwt-qt3
 
111
+
 
112
+} else {
 
113
+    # Qt 4
 
114
+
 
115
+    headers.path   = $$INSTALLBASE/include/qwt-qt4
 
116
+
 
117
+}
 
118
+doc.path       = $$INSTALLBASE/share/doc/libqwt5-doc
 
119
 
 
120
 ######################################################################
 
121
 # qmake internal options
 
122
@@ -58,7 +69,7 @@
 
123
 # QwtSVGItem.
 
124
 ######################################################################
 
125
 
 
126
-#CONFIG     += QwtSVGItem
 
127
+CONFIG     += QwtSVGItem
 
128
 
 
129
 ######################################################################
 
130
 # If you have a commercial license you can use the MathML renderer
 
131
--- qwt-5.0.2.orig/qwt-5.0.2/src/src.pro
 
132
+++ qwt-5.0.2/qwt-5.0.2/src/src.pro
 
133
@@ -11,7 +11,19 @@
 
134
 
 
135
 include( ../qwtconfig.pri )
 
136
 
 
137
-TARGET            = qwt
 
138
+VVERSION = $$[QT_VERSION]
 
139
+isEmpty(VVERSION) {
 
140
+    # Qt 3
 
141
+
 
142
+    TARGET            = qwt-qt3
 
143
+
 
144
+} else {
 
145
+
 
146
+    # Qt 4
 
147
+
 
148
+    TARGET            = qwt-qt4
 
149
+
 
150
+}
 
151
 TEMPLATE          = lib
 
152
 
 
153
 VERSION      = 5.0.2