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

(-)/home/makc/porting/ports/math/qtiplot/Makefile (-15 / +23 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	qtiplot
8
PORTNAME=	qtiplot
9
DISTVERSION=	0.9
9
DISTVERSION=	0.9.2
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
12
Lines 21-29 Link Here
21
USE_BZIP2=	yes
21
USE_BZIP2=	yes
22
USE_GMAKE=	yes
22
USE_GMAKE=	yes
23
USE_QT_VER=	4
23
USE_QT_VER=	4
24
QT_COMPONENTS=	gui moc qmake opengl svg qt3support network assistantclient
24
QT_COMPONENTS=	gui moc_build qmake_build opengl svg qt3support network assistantclient
25
HAS_CONFIGURE=	yes
25
HAS_CONFIGURE=	yes
26
CONFIGURE_ENV+=	LOCALBASE="${LOCALBASE}"
26
USE_DOS2UNIX=	qtiplot/qtiplot.pro
27
USE_DOS2UNIX=	qtiplot/qtiplot.pro
28
MAN1=		qtiplot.1
27
29
28
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \
30
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \
29
		"${DATADIR}/qtiplot.png" \
31
		"${DATADIR}/qtiplot.png" \
Lines 42-48 Link Here
42
BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
44
BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
43
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
45
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
44
PLIST_SUB+=	PYTHON=""
46
PLIST_SUB+=	PYTHON=""
45
MAKE_ENV+=	PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} \
47
CONFIGURE_ENV+=	PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} \
46
		PYTHON_VERSION=${PYTHON_VERSION}
48
		PYTHON_VERSION=${PYTHON_VERSION}
47
.else
49
.else
48
PLIST_SUB+=	PYTHON="@comment "
50
PLIST_SUB+=	PYTHON="@comment "
Lines 60-67 Link Here
60
PLIST_SUB+=	NLS="@comment "
62
PLIST_SUB+=	NLS="@comment "
61
.endif
63
.endif
62
64
63
QPRO_DIRS=	. \
65
QPRO_DIRS=	fitPlugins/fitRational0 \
64
		fitPlugins/fitRational0 \
65
		fitPlugins/fitRational1 \
66
		fitPlugins/fitRational1 \
66
		qtiplot
67
		qtiplot
67
68
Lines 70-95 Link Here
70
	@${REINPLACE_CMD} -e \
71
	@${REINPLACE_CMD} -e \
71
		's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
72
		's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
72
		${WRKSRC}/${PORTNAME}/src/PythonScripting.cpp
73
		${WRKSRC}/${PORTNAME}/src/PythonScripting.cpp
73
	${REINPLACE_CMD} -e \
74
	@${REINPLACE_CMD} -e \
74
		'/^sys.path.append/s|"\."|"${DATADIR}"|' \
75
		'/^sys.path.append/s|"\."|"${DATADIR}"|' \
75
		${WRKSRC}/${PORTNAME}/qtiplotrc.py
76
		${WRKSRC}/${PORTNAME}/qtiplotrc.py
77
	@${REINPLACE_CMD} -e \
78
		"/^#SCRIPTING_LANGS.*Python/s|^#||" \
79
		${WRKSRC}/${PORTNAME}/qtiplot.pro
76
.else
80
.else
77
	@${REINPLACE_CMD} \
81
	@${REINPLACE_CMD} -e \
78
		-e "s/^SCRIPTING_LANGS += Python//" \
82
		"s/^SCRIPTING_LANGS.*Python//" \
79
		${WRKSRC}/${PORTNAME}/qtiplot.pro
83
		${WRKSRC}/${PORTNAME}/qtiplot.pro
80
.endif
84
.endif
81
	@${REINPLACE_CMD} -e \
85
	@${REINPLACE_CMD} -e \
82
		's|/usr/share/doc/qtiplot/manual-%1|${DATADIR}/manual|; \
86
		's|/usr/share/doc/qtiplot/manual-%1|${DATADIR}/manual|; \
83
		 s|/usr/lib/qtiplot/plugins|${DATADIR}/fitPlugins|' \
87
		 s|/usr/lib/qtiplot/plugins|${DATADIR}/fitPlugins|' \
84
		${WRKSRC}/qtiplot/src/ApplicationWindow.cpp
88
		${WRKSRC}/qtiplot/src/ApplicationWindow.cpp
89
.if defined(WITH_DEBUG)
90
	@${REINPLACE_CMD} -e \
91
		"/^CONFIG.*release/s|release|debug|" \
92
		${WRKSRC}/${PORTNAME}/qtiplot.pro
93
.endif
85
94
86
do-configure:
95
do-configure:
87
.if !defined(WITHOUT_NLS)
96
.if !defined(WITHOUT_NLS)
88
	cd ${WRKSRC}/qtiplot && ${LOCALBASE}/bin/lrelease-qt4 -verbose qtiplot.pro
97
	@(cd ${WRKSRC}/qtiplot && ${LOCALBASE}/bin/lrelease-qt4 qtiplot.pro)
89
.endif
98
.endif
90
.for d in ${QPRO_DIRS}
99
	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -recursive)
91
	(cd ${WRKSRC}/${d} && ${SETENV} ${MAKE_ENV} ${QMAKE})
92
.endfor
93
100
94
post-configure:
101
post-configure:
95
.for d in ${QPRO_DIRS}
102
.for d in ${QPRO_DIRS}
Lines 99-110 Link Here
99
		 s|^LINK .*|LINK=${CXX}|' \
106
		 s|^LINK .*|LINK=${CXX}|' \
100
		${WRKSRC}/${d}/Makefile
107
		${WRKSRC}/${d}/Makefile
101
.endfor
108
.endfor
102
	${REINPLACE_CMD} -e 's|^\(INCPATH.*=\)|\1-I../3rdparty/liborigin|' ${WRKSRC}/qtiplot/Makefile
109
	@${REINPLACE_CMD} -e 's|^\(INCPATH.*=\)|\1-I../3rdparty/liborigin|' ${WRKSRC}/qtiplot/Makefile
103
110
104
do-install:
111
do-install:
105
	${MKDIR} ${DATADIR}
112
	${MKDIR} ${DATADIR}
106
	${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${DATADIR}/qtiplot
113
	${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${DATADIR}/qtiplot
107
	${LN} -fs ${DATADIR}/qtiplot ${PREFIX}/bin/qtiplot
114
	${LN} -fs ${DATADIR}/qtiplot ${PREFIX}/bin/qtiplot
115
	${INSTALL_MAN} ${WRKSRC}/qtiplot.1 ${PREFIX}/man/man1
108
	${MKDIR} ${DATADIR}/fitPlugins
116
	${MKDIR} ${DATADIR}/fitPlugins
109
	${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational0.so.1.0.0 \
117
	${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational0.so.1.0.0 \
110
				${DATADIR}/fitPlugins/libfitRational0.so
118
				${DATADIR}/fitPlugins/libfitRational0.so
Lines 114-125 Link Here
114
.if defined(WITH_PYTHON)
122
.if defined(WITH_PYTHON)
115
.for s in qtiplotrc.py qtiUtil.py
123
.for s in qtiplotrc.py qtiUtil.py
116
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s} ${DATADIR}/${s}
124
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s} ${DATADIR}/${s}
117
	@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('${s}')"
125
	@(cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('${s}')")
118
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s}c ${DATADIR}/${s}c
126
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s}c ${DATADIR}/${s}c
119
.endfor
127
.endfor
120
.endif
128
.endif
121
.if !defined(WITHOUT_NLS)
129
.if !defined(WITHOUT_NLS)
122
	(cd ${WRKSRC}/qtiplot/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
130
	@(cd ${WRKSRC}/qtiplot/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
123
.endif
131
.endif
124
132
125
.include <bsd.port.post.mk>
133
.include <bsd.port.post.mk>
(-)/home/makc/porting/ports/math/qtiplot/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qtiplot-0.9.tar.bz2) = 117601fb9ba06b41f99e5492920f0864
1
MD5 (qtiplot-0.9.2.tar.bz2) = 943c50f7fb28e1b11ed0188ec918cf4c
2
SHA256 (qtiplot-0.9.tar.bz2) = a4a8cbf0619f902ce029286a9f2960da66d587d6b2f2fffdb9ed8042fa2873db
2
SHA256 (qtiplot-0.9.2.tar.bz2) = 051a55e3e120ad53b2463a3a9295d22f9d36d1146468c5ebd869a5f180c145fd
3
SIZE (qtiplot-0.9.tar.bz2) = 825530
3
SIZE (qtiplot-0.9.2.tar.bz2) = 897629
(-)/home/makc/porting/ports/math/qtiplot/files/patch-fitPlugins__fitRational0__fitRational0.pro (-13 / +13 lines)
Lines 1-14 Link Here
1
--- ./fitPlugins/fitRational0/fitRational0.pro.orig	Wed Jun 13 21:16:56 2007
1
--- ./fitPlugins/fitRational0/fitRational0.pro.orig	2007-10-27 02:15:32.000000000 +0400
2
+++ ./fitPlugins/fitRational0/fitRational0.pro	Sat Jul 14 14:56:13 2007
2
+++ ./fitPlugins/fitRational0/fitRational0.pro	2007-11-14 20:19:55.000000000 +0300
3
@@ -12,9 +12,8 @@
3
@@ -12,9 +12,8 @@
4
 DESTDIR           = ../
4
 DESTDIR           = ../
5
  
5
  
6
 # statically link against GSL in 3rdparty
6
 # statically link against GSL in 3rdparty
7
-INCLUDEPATH += ../../3rdparty/gsl
7
-INCLUDEPATH += ../../3rdparty/gsl/include/
8
-LIBS         += ../3rdparty/gsl/lib/libgsl.a
8
-LIBS        += ../../3rdparty/gsl/lib/libgsl.a
9
-LIBS         += ../3rdparty/gsl/lib/libgslcblas.a
9
-LIBS        += ../../3rdparty/gsl/lib/libgslcblas.a
10
+unix:INCLUDEPATH += $$(LOCALBASE)/include
10
+unix:INCLUDEPATH += $$(LOCALBASE)/include
11
+unix:LIBS         += -lgsl -lgslcblas
11
+unix:LIBS         += -lgsl -lgslcblas
12
 #dynamically link against GSL installed system-wide
12
 
13
 #unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
13
 #dynamically link against GSL installed system-wide
14
 
14
 #unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
(-)/home/makc/porting/ports/math/qtiplot/files/patch-fitPlugins__fitRational1__fitRational1.pro (-13 / +13 lines)
Lines 1-14 Link Here
1
--- ./fitPlugins/fitRational1/fitRational1.pro.orig	Wed Jun 13 21:16:56 2007
1
--- ./fitPlugins/fitRational1/fitRational1.pro.orig	2007-10-27 02:15:18.000000000 +0400
2
+++ ./fitPlugins/fitRational1/fitRational1.pro	Sat Jul 14 14:56:13 2007
2
+++ ./fitPlugins/fitRational1/fitRational1.pro	2007-11-14 20:19:55.000000000 +0300
3
@@ -12,9 +12,8 @@
3
@@ -12,9 +12,8 @@
4
 DESTDIR           = ../
4
 DESTDIR           = ../
5
  
5
  
6
 # statically link against GSL in 3rdparty
6
 # statically link against GSL in 3rdparty
7
-INCLUDEPATH += ../../3rdparty/gsl
7
-INCLUDEPATH += ../../3rdparty/gsl/include/
8
-LIBS         += ../3rdparty/gsl/lib/libgsl.a
8
-LIBS        += ../../3rdparty/gsl/lib/libgsl.a
9
-LIBS         += ../3rdparty/gsl/lib/libgslcblas.a
9
-LIBS        += ../../3rdparty/gsl/lib/libgslcblas.a
10
+unix:INCLUDEPATH += $$(LOCALBASE)/include
10
+unix:INCLUDEPATH += $$(LOCALBASE)/include
11
+unix:LIBS         += -lgsl -lgslcblas
11
+unix:LIBS         += -lgsl -lgslcblas
12
 #dynamically link against GSL installed system-wide
12
 
13
 #unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
13
 #dynamically link against GSL installed system-wide
14
 
14
 #unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
(-)/home/makc/porting/ports/math/qtiplot/files/patch-qtiplot__qtiplot.pro (-7 / +7 lines)
Lines 1-6 Link Here
1
--- ./qtiplot/qtiplot.pro.orig	2007-09-20 15:55:53.000000000 +0400
1
--- ./qtiplot/qtiplot.pro.orig	2007-11-14 20:19:55.000000000 +0300
2
+++ ./qtiplot/qtiplot.pro	2007-09-23 01:11:43.000000000 +0400
2
+++ ./qtiplot/qtiplot.pro	2007-11-14 20:19:55.000000000 +0300
3
@@ -30,12 +30,8 @@
3
@@ -34,12 +34,8 @@
4
 #!!! Warning: You must modify these paths according to your computer settings
4
 #!!! Warning: You must modify these paths according to your computer settings
5
 #############################################################################
5
 #############################################################################
6
 
6
 
Lines 15-21 Link Here
15
 
15
 
16
 ##################### 3rd PARTY LIBRARIES SECTION ###########################
16
 ##################### 3rd PARTY LIBRARIES SECTION ###########################
17
 #!!! Warning: You must modify these paths according to your computer settings
17
 #!!! Warning: You must modify these paths according to your computer settings
18
@@ -44,17 +40,13 @@
18
@@ -48,17 +44,13 @@
19
 ##################### Linux (Mac OS X) ######################################
19
 ##################### Linux (Mac OS X) ######################################
20
 
20
 
21
 # statically link against libraries in 3rdparty
21
 # statically link against libraries in 3rdparty
Lines 36-42 Link Here
36
 
36
 
37
 ##################### Windows ###############################################
37
 ##################### Windows ###############################################
38
 
38
 
39
@@ -363,6 +355,7 @@
39
@@ -400,6 +392,7 @@
40
 ##################### Default: muParser v1.28 #################
40
 ##################### Default: muParser v1.28 #################
41
 
41
 
42
 contains(SCRIPTING_LANGS, muParser) {
42
 contains(SCRIPTING_LANGS, muParser) {
Lines 44-50 Link Here
44
   DEFINES += SCRIPTING_MUPARSER
44
   DEFINES += SCRIPTING_MUPARSER
45
 
45
 
46
   HEADERS += src/muParserScript.h \
46
   HEADERS += src/muParserScript.h \
47
@@ -380,11 +373,11 @@
47
@@ -417,11 +410,11 @@
48
   SOURCES += src/PythonScript.cpp src/PythonScripting.cpp
48
   SOURCES += src/PythonScript.cpp src/PythonScripting.cpp
49
 
49
 
50
   unix {
50
   unix {
Lines 59-62 Link Here
59
+    system($$system($$SIPCMD) -c $${SIP_DIR} src/qti.sip)
59
+    system($$system($$SIPCMD) -c $${SIP_DIR} src/qti.sip)
60
   }
60
   }
61
 
61
 
62
   win32 {
62
   win32 {

Return to bug 118375