File: 01_makefile.dpatch

package info (click to toggle)
qwtplot3d 0.2.7%2Bsvn191-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,204 kB
  • ctags: 1,791
  • sloc: cpp: 8,911; ansic: 5,078; sh: 175; python: 95; makefile: 53
file content (120 lines) | stat: -rw-r--r-- 3,458 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_makefile.dpatch by Gudjon I. Gudjonsson <gudjon@gudjon.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes the makefiles to install according to the Debian FHS

@DPATCH@
diff -urNad qwtplot3d-0.2.7~/doc/Doxyfile.doxygen qwtplot3d-0.2.7/doc/Doxyfile.doxygen
--- qwtplot3d-0.2.7~/doc/Doxyfile.doxygen	2007-06-26 14:17:59.000000000 +0200
+++ qwtplot3d-0.2.7/doc/Doxyfile.doxygen	2007-06-26 14:34:58.000000000 +0200
@@ -116,7 +116,7 @@
 HTML_ALIGN_MEMBERS     = YES
 GENERATE_HTMLHELP      = NO
 CHM_FILE               = qwtplot3d.chm
-HHC_LOCATION           = "c:\Programme\HTML Help Workshop\hhc.exe"
+#HHC_LOCATION           = "c:\Programme\HTML Help Workshop\hhc.exe"
 GENERATE_CHI           = NO
 BINARY_TOC             = YES
 TOC_EXPAND             = YES
@@ -181,7 +181,7 @@
 MACRO_EXPANSION        = NO
 EXPAND_ONLY_PREDEF     = NO
 SEARCH_INCLUDES        = YES
-INCLUDE_PATH           = V:/cvs/qwtplot3d/include/
+INCLUDE_PATH           = ../include/
 INCLUDE_FILE_PATTERNS  = *.h
 PREDEFINED             = QWT3D_NOT_FOR_DOXYGEN \
                          QT_VERSION=0x040000
@@ -212,7 +212,6 @@
 GRAPHICAL_HIERARCHY    = YES
 DIRECTORY_GRAPH        = YES
 DOT_IMAGE_FORMAT       = png
-DOT_PATH               = V:/graphviz/Graphviz/bin/
 DOTFILE_DIRS           = 
 MAX_DOT_GRAPH_WIDTH    = 974
 MAX_DOT_GRAPH_HEIGHT   = 10000
diff -urNad qwtplot3d-0.2.7~/examples/common.pro qwtplot3d-0.2.7/examples/common.pro
--- qwtplot3d-0.2.7~/examples/common.pro	2007-06-26 14:17:59.000000000 +0200
+++ qwtplot3d-0.2.7/examples/common.pro	2007-06-26 14:35:59.000000000 +0200
@@ -3,11 +3,19 @@
 UI_DIR = tmp
 MOC_DIR      = tmp
 OBJECTS_DIR  = tmp
-INCLUDEPATH    += ../../include 
+VVERSION = $$[QT_VERSION]
+isEmpty(VVERSION) {
+    # Qt 3
+    INCLUDEPATH    += /usr/include/qwtplot3d-qt3
+    unix:LIBS += -lqwtplot3d-qt3
+} else {
+    # Qt 4
+    INCLUDEPATH    += /usr/include/qwtplot3d-qt4
+    unix:LIBS += -lqwtplot3d-qt4
+}
 DEPENDPATH	= $$INCLUDEPATH
 DESTDIR = ../bin
 
-unix:LIBS += -lqwtplot3d -L../../lib
 linux-g++:QMAKE_CXXFLAGS += -fno-exceptions
 
 win32{
@@ -25,7 +33,7 @@
 ISQT4 = $$find(MYVERSION, ^[2-9])
 
 !isEmpty( ISQT4 ) {
-RESOURCES     = ../images.qrc
+#RESOURCES     = images.qrc
 QT += opengl
 }
 
diff -urNad qwtplot3d-0.2.7~/qwtplot3d.pro qwtplot3d-0.2.7/qwtplot3d.pro
--- qwtplot3d-0.2.7~/qwtplot3d.pro	2007-06-26 14:17:59.000000000 +0200
+++ qwtplot3d-0.2.7/qwtplot3d.pro	2007-06-26 14:34:58.000000000 +0200
@@ -1,7 +1,14 @@
 # pro file for building the makefile for qwtplot3d
 #
 
-TARGET            = qwtplot3d
+VVERSION = $$[QT_VERSION]
+isEmpty(VVERSION) {
+	# Qt 3
+	TARGET	= qwtplot3d-qt3
+} else {
+	# Qt 4
+	TARGET	= qwtplot3d-qt4
+}
 TEMPLATE          = lib
 CONFIG           += qt warn_on opengl thread zlib debug
 MOC_DIR           = tmp
@@ -92,4 +99,28 @@
   DEFINES += GL2PS_HAVE_ZLIB
   win32:LIBS += zlib.lib
 	unix:LIBS  += -lz
-}
\ No newline at end of file
+}
+
+# Install directives
+INSTALLBASE    = /usr
+
+doc.path       = $$INSTALLBASE/share/doc/libqwtplot3d-doc/html
+doc.files      = doc/web/doxygen/*
+
+VVERSION = $$[QT_VERSION]
+isEmpty(VVERSION) {
+    # Qt 3
+
+    headers.path   = $$INSTALLBASE/include/qwtplot3d-qt3
+
+} else {
+    # Qt 4
+
+    headers.path   = $$INSTALLBASE/include/qwtplot3d-qt4
+
+}
+headers.files  = $$HEADERS
+
+target.path    = $$INSTALLBASE/lib
+
+INSTALLS       = doc headers target