Lines 6-37
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= qtiplot |
8 |
PORTNAME= qtiplot |
9 |
PORTVERSION= 0.8.7.3 |
9 |
PORTVERSION= 0.8.9.r2 |
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.7-3 |
12 |
DISTNAME= ${PORTNAME}-0.8.9-rc2 |
13 |
|
13 |
|
14 |
MAINTAINER= makc@issp.ac.ru |
14 |
MAINTAINER= makc@issp.ac.ru |
15 |
COMMENT= An Origin clone for data analysis and scientific plotting |
15 |
COMMENT= An Origin clone for data analysis and scientific plotting |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake \ |
17 |
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake |
18 |
sip:${PORTSDIR}/devel/py-sip \ |
|
|
19 |
pylupdate:${PORTSDIR}/x11-toolkits/py-qt |
20 |
LIB_DEPENDS= gsl.9:${PORTSDIR}/math/gsl \ |
18 |
LIB_DEPENDS= gsl.9:${PORTSDIR}/math/gsl \ |
21 |
origin.0:${PORTSDIR}/math/liborigin \ |
19 |
origin.0:${PORTSDIR}/math/liborigin \ |
22 |
qwtplot3d:${PORTSDIR}/math/qwtplot3d |
20 |
qwtplot3d:${PORTSDIR}/math/qwtplot3d \ |
23 |
RUN_DEPENDS= pylupdate:${PORTSDIR}/x11-toolkits/py-qt |
21 |
qwt.5:${PORTSDIR}/x11-toolkits/qwt-devel |
24 |
|
22 |
|
25 |
USE_BZIP2= yes |
23 |
USE_BZIP2= yes |
26 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
27 |
USE_PYTHON= 2.4 |
|
|
28 |
|
29 |
USE_DOS2UNIX= qtiplot/src/application.cpp |
30 |
|
31 |
USE_QT_VER= 3 |
25 |
USE_QT_VER= 3 |
32 |
MAKE_ENV= QTDIR=${QT_PREFIX} |
26 |
MAKE_ENV= QTDIR=${QT_PREFIX} |
33 |
|
27 |
|
34 |
OPTIONS= DOCS "Install the QtiPlot Handbook" on |
28 |
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \ |
|
|
29 |
"${DOCSDIR}/common/qtiplot_logo.png" \ |
30 |
"qtiplot" "" false |
31 |
|
32 |
OPTIONS= DOCS "Install the QtiPlot Handbook" on \ |
33 |
PYTHON "Python scripting support" off |
35 |
|
34 |
|
36 |
.include <bsd.port.pre.mk> |
35 |
.include <bsd.port.pre.mk> |
37 |
|
36 |
|
Lines 39-44
Link Here
|
39 |
IGNORE= does not compile on FreeBSD 4.x |
38 |
IGNORE= does not compile on FreeBSD 4.x |
40 |
.endif |
39 |
.endif |
41 |
|
40 |
|
|
|
41 |
.if defined(WITH_PYTHON) |
42 |
USE_PYTHON= 2.4 |
43 |
# manually include this, because USE_PYTHON is defined |
44 |
# after including bsd.port.pre.mk |
45 |
.include "${PORTSDIR}/Mk/bsd.python.mk" |
46 |
BUILD_DEPENDS+= sip:${PORTSDIR}/devel/py-sip \ |
47 |
${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="" |
50 |
.else |
51 |
PLIST_SUB+= PYTHON="@comment " |
52 |
.endif |
53 |
|
42 |
.if !defined(WITHOUT_DOCS) |
54 |
.if !defined(WITHOUT_DOCS) |
43 |
RUN_DEPENDS+= qtiplot-doc>=0:${PORTSDIR}/math/qtiplot-doc |
55 |
RUN_DEPENDS+= qtiplot-doc>=0:${PORTSDIR}/math/qtiplot-doc |
44 |
.endif |
56 |
.endif |
Lines 54-75
Link Here
|
54 |
QMAKESPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ |
66 |
QMAKESPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ |
55 |
|
67 |
|
56 |
QPRO_DIRS= . \ |
68 |
QPRO_DIRS= . \ |
57 |
3rdparty/qwt \ |
|
|
58 |
fitPlugins/fitRational0 \ |
69 |
fitPlugins/fitRational0 \ |
59 |
fitPlugins/fitRational1 \ |
70 |
fitPlugins/fitRational1 \ |
60 |
qtiplot |
71 |
qtiplot |
61 |
|
72 |
|
62 |
post-patch: |
73 |
post-patch: |
63 |
.for d in ${QPRO_DIRS} |
74 |
.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 |
64 |
@${REINPLACE_CMD} -e \ |
79 |
@${REINPLACE_CMD} -e \ |
65 |
"s:../3rdparty/liborigin/include:${LOCALBASE}/include:" \ |
80 |
's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \ |
|
|
81 |
${WRKSRC}/qtiplot/src/PythonScripting.cpp |
82 |
.else |
83 |
@${REINPLACE_CMD} \ |
84 |
-e "s/unix:SCRIPTING_LANGS += Python//" \ |
85 |
${WRKSRC}/qtiplot/qtiplot.pro |
86 |
.endif |
87 |
|
88 |
.for d in ${QPRO_DIRS} |
89 |
@${REINPLACE_CMD} \ |
90 |
-e "s/#system/system/g" \ |
91 |
-e "s:../3rdparty/liborigin:${LOCALBASE}/include:" \ |
92 |
-e "s:../3rdparty/qwt/include:${LOCALBASE}/include/qwt:" \ |
66 |
-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \ |
93 |
-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \ |
67 |
-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \ |
94 |
-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \ |
68 |
-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DATADIR}/manual:" \ |
95 |
-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DATADIR}/manual:" \ |
69 |
-e "s:/usr/include/python2.4:/usr/local/include/python2.4:" \ |
|
|
70 |
-e "s:/usr/share/sip:/usr/local/share/py-sip/:" \ |
71 |
${WRKSRC}/${d}/*.pro |
96 |
${WRKSRC}/${d}/*.pro |
72 |
.endfor |
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 |
73 |
|
101 |
|
74 |
do-configure: |
102 |
do-configure: |
75 |
.for d in ${QPRO_DIRS} |
103 |
.for d in ${QPRO_DIRS} |
Lines 84-90
Link Here
|
84 |
s|^CXX .*|CXX=${CXX}|; \ |
112 |
s|^CXX .*|CXX=${CXX}|; \ |
85 |
s|-pipe||; \ |
113 |
s|-pipe||; \ |
86 |
s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \ |
114 |
s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \ |
87 |
s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \ |
115 |
s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|; \ |
|
|
116 |
s|../3rdparty/qwt/lib/libqwt.a|-lqwt|' \ |
88 |
${WRKSRC}/${d}/Makefile |
117 |
${WRKSRC}/${d}/Makefile |
89 |
.endfor |
118 |
.endfor |
90 |
|
119 |
|
Lines 92-98
Link Here
|
92 |
${MKDIR} ${DATADIR} |
121 |
${MKDIR} ${DATADIR} |
93 |
${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${DATADIR}/qtiplot |
122 |
${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${DATADIR}/qtiplot |
94 |
${LN} -fs ${DATADIR}/qtiplot ${PREFIX}/bin/qtiplot |
123 |
${LN} -fs ${DATADIR}/qtiplot ${PREFIX}/bin/qtiplot |
|
|
124 |
${MKDIR} ${DATADIR}/fitPlugins |
125 |
${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational0.so.1.0.0 \ |
126 |
${DATADIR}/fitPlugins/libfitRational0.so |
127 |
${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational1.so.1.0.0 \ |
128 |
${DATADIR}/fitPlugins/libfitRational1.so |
129 |
.if defined(WITH_PYTHON) |
95 |
${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.py ${DATADIR}/qtiplotrc.py |
130 |
${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.py ${DATADIR}/qtiplotrc.py |
|
|
131 |
@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('qtiplotrc.py')" |
132 |
${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.pyc ${DATADIR}/qtiplotrc.pyc |
133 |
.endif |
96 |
.if !defined(WITHOUT_NLS) |
134 |
.if !defined(WITHOUT_NLS) |
97 |
.for i in ${QTI_LANG} |
135 |
.for i in ${QTI_LANG} |
98 |
${MKDIR} ${DATADIR}/translations/ |
136 |
${MKDIR} ${DATADIR}/translations/ |