1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01_makefiles.dpatch by Gudjon I. Gudjonsson <gudjon@mc2-m038.mc2.chalmers.se>
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.~
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
13
DEFINES += NO_QWT_WIDGETS
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
23
VVERSION = $$[QT_VERSION]
28
+ unix:LIBS += -L../lib -lqwt-qt3
34
HEADERS += qwtplugin.h
35
SOURCES += qwtplugin.cpp
37
- target.path = $(QTDIR)/plugins/designer
38
+ #target.path = $(QTDIR)/plugins/designer
39
+ target.path = /usr/lib/qt3/plugins/designer
47
+ unix:LIBS += -L../lib -lqwt-qt4
49
TARGET = qwt_designer_plugin
50
CONFIG += qt designer plugin
54
qwt_designer_plugin.qrc
56
- target.path = $$[QT_INSTALL_PLUGINS]/designer
57
+ #target.path = $$[QT_INSTALL_PLUGINS]/designer
58
+ target.path = /usr/lib/qt4/plugins/designer
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
69
-INCLUDEPATH += ../../src
70
-DEPENDPATH += ../../src
71
+#INCLUDEPATH += ../../src
72
+#DEPENDPATH += ../../src
74
-unix:LIBS += -L../../lib -lqwt
75
+#unix:LIBS += -L../../lib -lqwt
77
+VVERSION = $$[QT_VERSION]
81
+ INCLUDEPATH += /usr/include/qwt-qt3
82
+ DEPENDPATH += /usr/include/qwt-qt3
83
+ unix:LIBS += -lqwt-qt3
88
+ INCLUDEPATH += /usr/include/qwt-qt4
89
+ DEPENDPATH += /usr/include/qwt-qt4
90
+ unix:LIBS += -lqwt-qt4
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
100
# modify it under the terms of the Qwt License, Version 1.0
101
###################################################################
103
-include( ../qwtconfig.pri )
104
+#include( ../qwtconfig.pri )
105
+include( examples.pri )
106
+include( qwtconfig.pri )
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
114
######################################################################
117
- INSTALLBASE = /usr/local/qwt
118
+ #INSTALLBASE = /usr/local/qwt
126
target.path = $$INSTALLBASE/lib
127
-headers.path = $$INSTALLBASE/include
128
-doc.path = $$INSTALLBASE/doc
129
+#headers.path = $$INSTALLBASE/include
130
+VVERSION = $$[QT_VERSION]
134
+ headers.path = $$INSTALLBASE/include/qwt-qt3
139
+ headers.path = $$INSTALLBASE/include/qwt-qt4
142
+#doc.path = $$INSTALLBASE/doc
143
+doc.path = $$INSTALLBASE/share/doc/libqwt5-doc
145
######################################################################
146
# qmake internal options
149
######################################################################
151
-#CONFIG += QwtSVGItem
152
+CONFIG += QwtSVGItem
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
161
include( ../qwtconfig.pri )
165
+VVERSION = $$[QT_VERSION]