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> |