View | Details | Raw Unified | Return to bug 109030
Collapse All | Expand All

(-)/home/makc/porting/ports/math/qtiplot/Makefile (-28 / +25 lines)
Lines 6-21 Link Here
6
#
6
#
7
7
8
PORTNAME=	qtiplot
8
PORTNAME=	qtiplot
9
PORTVERSION=	0.8.9.r2
9
PORTVERSION=	0.8.9
10
CATEGORIES=	math science
10
CATEGORIES=	math science
11
MASTER_SITES=	http://soft.proindependent.com/src/
11
MASTER_SITES=	http://soft.proindependent.com/src/
12
DISTNAME=	${PORTNAME}-0.8.9-rc2
13
12
14
MAINTAINER=	makc@issp.ac.ru
13
MAINTAINER=	makc@issp.ac.ru
15
COMMENT=	An Origin clone for data analysis and scientific plotting
14
COMMENT=	An Origin clone for data analysis and scientific plotting
16
15
17
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
16
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
18
LIB_DEPENDS=	gsl.9:${PORTSDIR}/math/gsl \
17
LIB_DEPENDS=	gsl.9:${PORTSDIR}/math/gsl \
18
		muparser.0:${PORTSDIR}/math/muparser \
19
		origin.0:${PORTSDIR}/math/liborigin \
19
		origin.0:${PORTSDIR}/math/liborigin \
20
		qwtplot3d:${PORTSDIR}/math/qwtplot3d \
20
		qwtplot3d:${PORTSDIR}/math/qwtplot3d \
21
		qwt.5:${PORTSDIR}/x11-toolkits/qwt-devel
21
		qwt.5:${PORTSDIR}/x11-toolkits/qwt-devel
Lines 26-32 Link Here
26
MAKE_ENV=	QTDIR=${QT_PREFIX}
26
MAKE_ENV=	QTDIR=${QT_PREFIX}
27
27
28
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \
28
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \
29
		"${DOCSDIR}/common/qtiplot_logo.png" \
29
		"${DATADIR}/manual/common/qtiplot_logo.png" \
30
		"qtiplot" "" false
30
		"qtiplot" "" false
31
31
32
OPTIONS=	DOCS "Install the QtiPlot Handbook" on \
32
OPTIONS=	DOCS "Install the QtiPlot Handbook" on \
Lines 39-45 Link Here
39
.endif
39
.endif
40
40
41
.if defined(WITH_PYTHON)
41
.if defined(WITH_PYTHON)
42
USE_PYTHON=	2.4
42
USE_PYTHON=	yes
43
# manually include this, because USE_PYTHON is defined
43
# manually include this, because USE_PYTHON is defined
44
# after including bsd.port.pre.mk
44
# after including bsd.port.pre.mk
45
.include "${PORTSDIR}/Mk/bsd.python.mk"
45
.include "${PORTSDIR}/Mk/bsd.python.mk"
Lines 47-52 Link Here
47
		${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt
47
		${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt
48
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt
48
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt
49
PLIST_SUB+=	PYTHON=""
49
PLIST_SUB+=	PYTHON=""
50
MAKE_ENV+=	PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} \
51
		PYTHON_VERSION=${PYTHON_VERSION}
50
.else
52
.else
51
PLIST_SUB+=	PYTHON="@comment "
53
PLIST_SUB+=	PYTHON="@comment "
52
.endif
54
.endif
Lines 70-103 Link Here
70
		fitPlugins/fitRational1 \
72
		fitPlugins/fitRational1 \
71
		qtiplot
73
		qtiplot
72
74
75
pre-patch:
76
	@${RM} -r ${WRKSRC}/3rdparty/muParser
77
	@${RM} -r ${WRKSRC}/3rdparty/qwt
78
	@${CP} ${FILESDIR}/${PORTNAME}.pro ${WRKSRC}/${PORTNAME}/${PORTNAME}.pro
79
73
post-patch:
80
post-patch:
74
.if defined(WITH_PYTHON)
81
.if defined(WITH_PYTHON)
75
	@${REINPLACE_CMD} \
76
		-e "s:/usr/include/python2.4:${PYTHON_INCLUDEDIR}:" \
77
		-e "s:/usr/share/sip:${LOCALBASE}/share/py-sip/:" \
78
		${WRKSRC}/qtiplot/qtiplot.pro
79
	@${REINPLACE_CMD} -e \
82
	@${REINPLACE_CMD} -e \
80
		's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
83
		's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
81
		${WRKSRC}/qtiplot/src/PythonScripting.cpp
84
		${WRKSRC}/${PORTNAME}/src/PythonScripting.cpp
82
.else
85
.else
83
	@${REINPLACE_CMD} \
86
	@${REINPLACE_CMD} \
84
		-e "s/unix:SCRIPTING_LANGS += Python//" \
87
		-e "s/unix:SCRIPTING_LANGS += Python//" \
85
		${WRKSRC}/qtiplot/qtiplot.pro
88
		${WRKSRC}/${PORTNAME}/qtiplot.pro
86
.endif
89
.endif
87
90
	@${REINPLACE_CMD} -e "s:3rdparty/qwt::" ${WRKSRC}/${PORTNAME}.pro
88
.for d in ${QPRO_DIRS}
91
	@${REINPLACE_CMD} -e 's:"/usr/share/doc/qtiplot:"${DATADIR}/manual:' \
89
	@${REINPLACE_CMD} \
92
		-e 's:QDir( "./" ).absPath():"":g' \
90
		-e "s/#system/system/g" \
93
		${WRKSRC}/${PORTNAME}/src/application.cpp
91
		-e "s:../3rdparty/liborigin:${LOCALBASE}/include:" \
94
	@${REINPLACE_CMD} -e 's:"../3rdparty/muParser/muParser.h":<muParser.h>:' \
92
		-e "s:../3rdparty/qwt/include:${LOCALBASE}/include/qwt:" \
95
		${WRKSRC}/${PORTNAME}/src/parser.h
93
		-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \
96
	@${REINPLACE_CMD} -e 's:"../3rdparty/muParser/muParser.h":<muParser.h>:' \
94
		-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \
97
		${WRKSRC}/${PORTNAME}/src/muParserScripting.h
95
		-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DATADIR}/manual:" \
96
		${WRKSRC}/${d}/*.pro
97
.endfor
98
	@${REINPLACE_CMD} -e "s:3rdparty/qwt::" ${WRKSRC}/qtiplot.pro
99
	@${REINPLACE_CMD} -e 's:"/usr/share/doc/qtiplot:"${DOCSDIR}:' \
100
		${WRKSRC}/qtiplot/src/application.cpp
101
98
102
do-configure:
99
do-configure:
103
.for d in ${QPRO_DIRS}
100
.for d in ${QPRO_DIRS}
Lines 110-119 Link Here
110
	@${REINPLACE_CMD} -e \
107
	@${REINPLACE_CMD} -e \
111
		's|^CC .*|CC=${CC}|; \
108
		's|^CC .*|CC=${CC}|; \
112
		 s|^CXX .*|CXX=${CXX}|; \
109
		 s|^CXX .*|CXX=${CXX}|; \
110
		 s|^LINK .*|LINK=${CXX}|; \
113
		 s|-pipe||; \
111
		 s|-pipe||; \
114
		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
112
		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
115
		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|; \
113
		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \
116
		 s|../3rdparty/qwt/lib/libqwt.a|-lqwt|' \
117
		${WRKSRC}/${d}/Makefile
114
		${WRKSRC}/${d}/Makefile
118
.endfor
115
.endfor
119
116
Lines 127-135 Link Here
127
	${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational1.so.1.0.0 \
124
	${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational1.so.1.0.0 \
128
				${DATADIR}/fitPlugins/libfitRational1.so
125
				${DATADIR}/fitPlugins/libfitRational1.so
129
.if defined(WITH_PYTHON)
126
.if defined(WITH_PYTHON)
130
	${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.py ${DATADIR}/qtiplotrc.py
127
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/qtiplotrc.py ${DATADIR}/qtiplotrc.py
131
	@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('qtiplotrc.py')"
128
	@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('qtiplotrc.py')"
132
	${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.pyc ${DATADIR}/qtiplotrc.pyc
129
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/qtiplotrc.pyc ${DATADIR}/qtiplotrc.pyc
133
.endif
130
.endif
134
.if !defined(WITHOUT_NLS)
131
.if !defined(WITHOUT_NLS)
135
.for i in ${QTI_LANG}
132
.for i in ${QTI_LANG}
(-)/home/makc/porting/ports/math/qtiplot/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qtiplot-0.8.9-rc2.tar.bz2) = fdf3996b4361c83c7e86ae4d8176bc04
1
MD5 (qtiplot-0.8.9.tar.bz2) = d4477a3d7d5a61d6f6da1af48424220f
2
SHA256 (qtiplot-0.8.9-rc2.tar.bz2) = efc9090413e4d446b8eed2182f9fe956406d24e92e82a51396a400eee8ba8765
2
SHA256 (qtiplot-0.8.9.tar.bz2) = c1472192cb04a56a7b75155d2520add2e6571bc8ede40341b8720291aafea870
3
SIZE (qtiplot-0.8.9-rc2.tar.bz2) = 598479
3
SIZE (qtiplot-0.8.9.tar.bz2) = 848083
(-)/home/makc/porting/ports/math/qtiplot/files/qtiplot.pro (+288 lines)
Line 0 Link Here
1
QMAKE_PROJECT_DEPTH = 0
2
3
TARGET		 = qtiplot
4
TEMPLATE	 = app
5
CONFIG		+= qt warn_on exceptions opengl
6
CONFIG		+= thread
7
CONFIG		+= release
8
9
MOC_DIR		 = ../tmp/qtiplot
10
OBJECTS_DIR	 = ../tmp/qtiplot
11
DESTDIR		 = ./
12
DEFINES		+= QT_PLUGIN
13
14
unix:INCLUDEPATH += $$(LOCALBASE)/include/qwt
15
unix:INCLUDEPATH += $$(LOCALBASE)/include
16
unix:INCLUDEPATH += $$(X11BASE)/include
17
18
unix:LIBS         +=  $$(QTDIR)/lib/libqassistantclient.a
19
unix:LIBS         += -L$$(LOCALBASE)/lib -lqwt -lgsl -lgslcblas -lorigin
20
unix:LIBS         += -L$$(X11BASE)/lib -lqwtplot3d
21
unix:LIBS         += -lz
22
23
TRANSLATIONS      = translations/qtiplot_de.ts \
24
			        translations/qtiplot_es.ts \
25
			        translations/qtiplot_fr.ts \
26
			        translations/qtiplot_ru.ts \
27
			        translations/qtiplot_sv.ts 
28
29
system($$(X11BASE)/bin/lupdate -verbose qtiplot.pro)
30
system($$(X11BASE)/bin/lrelease -verbose qtiplot.pro)
31
32
###################### HEADERS ##############################################
33
HEADERS  += src/application.h \
34
     src/graph.h \
35
     src/graph3D.h \
36
     src/worksheet.h \
37
     src/curvesDialog.h \
38
     src/valuesDialog.h \
39
     src/plotDialog.h \
40
     src/plot3DDialog.h \
41
     src/plotWizard.h \
42
     src/exportDialog.h \
43
     src/importDialog.h \
44
     src/axesDialog.h \
45
     src/pieDialog.h \
46
     src/polynomFitDialog.h \
47
     src/expDecayDialog.h \
48
     src/functionDialog.h \
49
     src/fitDialog.h \
50
     src/surfaceDialog.h \
51
     src/tableDialog.h \
52
     src/textDialog.h \
53
     src/lineDlg.h \
54
     src/scalePicker.h \
55
     src/canvaspicker.h \
56
     src/ErrorBar.h \
57
     src/pie.h \
58
     src/errDlg.h \
59
     src/LegendMarker.h \
60
     src/LineMarker.h\
61
     src/ImageMarker.h\
62
     src/imageDialog.h \
63
     src/fit.h \
64
     src/nrutil.h\
65
     src/pixmaps.h\
66
     src/multilayer.h\
67
     src/layerDialog.h \
68
     src/intDialog.h \
69
     src/sortDialog.h\
70
         src/bars.h \
71
         src/cones.h \
72
         src/configDialog.h \
73
         src/BarCurve.h \
74
         src/BoxCurve.h \
75
         src/Histogram.h \
76
         src/VectorCurve.h \
77
     src/scales.h \
78
         src/imageExportDialog.h \
79
         src/matrix.h \
80
         src/matrixDialog.h \
81
         src/matrixSizeDialog.h \
82
         src/matrixValuesDialog.h \
83
     src/analysisDialog.h \
84
         src/parser.h \
85
         src/colorBox.h \
86
         src/symbolBox.h \
87
         src/patternBox.h \
88
         src/importOPJ.h\
89
         src/symbolDialog.h \
90
         src/plot.h \
91
         src/colorButton.h \
92
         src/associationsDialog.h \
93
         src/renameWindowDialog.h \
94
         src/widget.h \
95
         src/interpolationDialog.h\
96
         src/fileDialogs.h\
97
         src/epsExportDialog.h\
98
         src/smoothCurveDialog.h\
99
         src/filterDialog.h\
100
         src/fftDialog.h\
101
         src/note.h\
102
         src/folder.h\
103
         src/findDialog.h\
104
         src/Scripting.h\
105
         src/scriptedit.h\
106
         src/FunctionCurve.h\
107
         src/Fitter.h\
108
         src/customEvents.h\
109
         src/ScriptingLangDialog.h\
110
         src/ScriptWindow.h\
111
         src/TableStatistics.h\
112
         src/Spectrogram.h\
113
         src/ColorMapEditor.h
114
 
115
###################### SOURCES  ##############################################  
116
  
117
SOURCES  += src/application.cpp \
118
     src/graph.cpp \
119
     src/analysis.cpp \
120
     src/graph3D.cpp \
121
     src/worksheet.cpp \
122
     src/valuesDialog.cpp \
123
     src/curvesDialog.cpp \
124
     src/plotDialog.cpp \
125
     src/plot3DDialog.cpp \
126
     src/plotWizard.cpp \
127
     src/exportDialog.cpp \
128
     src/importDialog.cpp \
129
     src/axesDialog.cpp \
130
     src/pieDialog.cpp \
131
     src/polynomFitDialog.cpp \
132
     src/tableDialog.cpp \
133
     src/textDialog.cpp \
134
     src/scalePicker.cpp \
135
     src/canvaspicker.cpp \
136
     src/expDecayDialog.cpp \
137
     src/functionDialog.cpp \
138
     src/fitDialog.cpp \
139
     src/surfaceDialog.cpp \
140
     src/lineDlg.cpp \
141
     src/ErrorBar.cpp \
142
     src/pie.cpp \
143
     src/errDlg.cpp \
144
     src/LegendMarker.cpp \
145
     src/LineMarker.cpp \
146
     src/ImageMarker.cpp\
147
     src/imageDialog.cpp \
148
     src/multilayer.cpp\
149
     src/layerDialog.cpp \
150
     src/intDialog.cpp \
151
     src/sortDialog.cpp\
152
         src/bars.cpp \
153
         src/cones.cpp \
154
     src/analysisDialog.cpp \
155
         src/configDialog.cpp \
156
         src/BarCurve.cpp \
157
         src/BoxCurve.cpp \
158
         src/Histogram.cpp \
159
         src/VectorCurve.cpp \
160
         src/imageExportDialog.cpp \
161
         src/matrix.cpp \
162
         src/matrixDialog.cpp \
163
         src/matrixSizeDialog.cpp \
164
         src/matrixValuesDialog.cpp \
165
         src/parser.cpp\
166
         src/colorBox.cpp \
167
         src/symbolBox.cpp \
168
         src/patternBox.cpp \
169
         src/importOPJ.cpp\
170
         src/main.cpp \
171
         src/symbolDialog.cpp \
172
         src/plot.cpp \
173
         src/colorButton.cpp \
174
         src/associationsDialog.cpp \
175
         src/renameWindowDialog.cpp \
176
         src/widget.cpp\
177
         src/interpolationDialog.cpp\
178
         src/epsExportDialog.cpp\
179
         src/nrutil.cpp\
180
     src/fit.cpp\
181
         src/smoothCurveDialog.cpp\
182
         src/filterDialog.cpp\
183
         src/fftDialog.cpp\
184
         src/note.cpp\
185
         src/folder.cpp\
186
         src/findDialog.cpp\
187
         src/scriptedit.cpp\
188
         src/fileDialogs.cpp\
189
     src/scales.cpp\
190
         src/FunctionCurve.cpp\
191
         src/Fitter.cpp\
192
         src/Scripting.cpp\
193
         src/ScriptingLangDialog.cpp\
194
         src/ScriptWindow.cpp\
195
         src/TableStatistics.cpp\
196
         src/Spectrogram.cpp\
197
         src/ColorMapEditor.cpp
198
199
SOURCES   +=../3rdparty/zlib123/minigzip.c
200
201
##################### SCRIPTING LANGUAGES SECTION #############
202
 
203
 SCRIPTING_LANGS = muParser
204
 DEFINES	+= SCRIPTING_CONSOLE
205
 DEFINES	+= SCRIPTING_DIALOG
206
207
# Python support is unstable; use at your own risk
208
unix:SCRIPTING_LANGS += Python
209
210
##################### Default: muParser #######################
211
contains(SCRIPTING_LANGS, muParser) {
212
  DEFINES +=	SCRIPTING_MUPARSER
213
  unix:LIBS +=	-lmuparser
214
  HEADERS +=	src/muParserScripting.h 
215
  SOURCES +=	src/muParserScripting.cpp 
216
}
217
218
##################### PYTHON + SIP + PyQT #####################
219
contains(SCRIPTING_LANGS, Python) {
220
  DEFINES +=	SCRIPTING_PYTHON
221
  HEADERS +=	src/PythonScripting.h
222
  SOURCES +=	src/PythonScripting.cpp
223
224
  SIP =		$$(LOCALBASE)/bin/sip
225
  SIPINCLUDE =	$$(LOCALBASE)/share/py-sip
226
227
 unix {
228
	INCLUDEPATH += $$(PYTHON_INCLUDEDIR)
229
	LIBS +=	-lm -l$$(PYTHON_VERSION)
230
	system(mkdir -p $${MOC_DIR})
231
	unix:system($${SIP} -I $${SIPINCLUDE} -t Qt_3_3_0 -t WS_X11 -c $${MOC_DIR} src/qti.sip)
232
	}
233
234
##################### SIP generated files #####################
235
  HEADERS +=\
236
	 ../tmp/qtiplot/sipqtiApplicationWindow.h\
237
	 ../tmp/qtiplot/sipqtiGraph.h\
238
	 ../tmp/qtiplot/sipqtiLineMarker.h\
239
	 ../tmp/qtiplot/sipqtiMultiLayer.h\
240
	 ../tmp/qtiplot/sipqtiTable.h\
241
	 ../tmp/qtiplot/sipqtimyWidget.h\
242
	 ../tmp/qtiplot/sipqtiScriptEdit.h\
243
	 ../tmp/qtiplot/sipqtiNote.h\
244
	 ../tmp/qtiplot/sipqtiFit.h\
245
	 ../tmp/qtiplot/sipqtiExponentialFit.h\
246
	 ../tmp/qtiplot/sipqtiTwoExpFit.h\
247
	 ../tmp/qtiplot/sipqtiThreeExpFit.h\
248
	 ../tmp/qtiplot/sipqtiSigmoidalFit.h\
249
	 ../tmp/qtiplot/sipqtiGaussAmpFit.h\
250
	 ../tmp/qtiplot/sipqtiLorentzFit.h\
251
	 ../tmp/qtiplot/sipqtiNonLinearFit.h\
252
	 ../tmp/qtiplot/sipqtiPluginFit.h\
253
	 ../tmp/qtiplot/sipqtiMultiPeakFit.h\
254
	 ../tmp/qtiplot/sipqtiPolynomialFit.h\
255
	 ../tmp/qtiplot/sipqtiLinearFit.h\
256
	 ../tmp/qtiplot/sipqtiMatrix.h\
257
	 ../tmp/qtiplot/sipqtiGaussFit.h\
258
	 ../tmp/qtiplot/sipqtiPythonScript.h\
259
	 ../tmp/qtiplot/sipqtiFolder.h\
260
	 ../tmp/qtiplot/sipqtiQPtrList.h
261
  SOURCES +=\
262
	 ../tmp/qtiplot/sipqticmodule.cpp\
263
	 ../tmp/qtiplot/sipqtiApplicationWindow.cpp\
264
	 ../tmp/qtiplot/sipqtiGraph.cpp\
265
	 ../tmp/qtiplot/sipqtiLineMarker.cpp\
266
	 ../tmp/qtiplot/sipqtiMultiLayer.cpp\
267
	 ../tmp/qtiplot/sipqtiTable.cpp\
268
	 ../tmp/qtiplot/sipqtimyWidget.cpp\
269
	 ../tmp/qtiplot/sipqtiScriptEdit.cpp\
270
	 ../tmp/qtiplot/sipqtiNote.cpp\
271
	 ../tmp/qtiplot/sipqtiFit.cpp\
272
	 ../tmp/qtiplot/sipqtiExponentialFit.cpp\
273
	 ../tmp/qtiplot/sipqtiTwoExpFit.cpp\
274
	 ../tmp/qtiplot/sipqtiThreeExpFit.cpp\
275
	 ../tmp/qtiplot/sipqtiSigmoidalFit.cpp\
276
	 ../tmp/qtiplot/sipqtiGaussAmpFit.cpp\
277
	 ../tmp/qtiplot/sipqtiLorentzFit.cpp\
278
	 ../tmp/qtiplot/sipqtiNonLinearFit.cpp\
279
	 ../tmp/qtiplot/sipqtiPluginFit.cpp\
280
	 ../tmp/qtiplot/sipqtiMultiPeakFit.cpp\
281
	 ../tmp/qtiplot/sipqtiPolynomialFit.cpp\
282
	 ../tmp/qtiplot/sipqtiLinearFit.cpp\
283
	 ../tmp/qtiplot/sipqtiMatrix.cpp\
284
	 ../tmp/qtiplot/sipqtiGaussFit.cpp\
285
	 ../tmp/qtiplot/sipqtiPythonScript.cpp\
286
	 ../tmp/qtiplot/sipqtiFolder.cpp\
287
	 ../tmp/qtiplot/sipqtiQPtrList.cpp
288
}

Return to bug 109030