blob: fffa68601206d7bf0ded8d8f57ce6d125a04b2ba (
plain)
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
|
# Created by: Jie Gao <gaoj@cpsc.ucalgary.ca>
# $FreeBSD$
PORTNAME= qtiplot
DISTVERSION= 0.9.8.9
PORTREVISION= 12
CATEGORIES= math science
MASTER_SITES= BERLIOS http://soft.proindependent.com/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Data analysis and scientific plotting
LIB_DEPENDS= libgsl.so:math/gsl \
libmuparser.so:math/muparser \
libpng.so:graphics/png
# use bundled modified libraries
# qwt.5:x11-toolkits/qwt5 \
# qwtplot3d-qt4:math/qwtplot3d-qt4
USES= dos2unix gmake qmake tar:bzip2
USE_QT4= gui opengl svg qt3support network assistantclient \
moc_build rcc_build
USE_GL= glu
QMAKE_ARGS+= LOCALBASE=${LOCALBASE} PYTHON_CMD=${PYTHON_CMD}
DOS2UNIX_GLOB= *.pro
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \
"${PREFIX}/share/pixmaps/qtiplot.png" \
"qtiplot" "" true
OPTIONS_DEFINE= DOCS PYTHON NLS DEBUG
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
DOCS_DESC= Install the QtiPlot Handbook
DOCS_RUN_DEPENDS= qtiplot-doc>=0:math/qtiplot-doc
DOCS_USE= QT4=assistant-adp_run
PYTHON_DESC= Python scripting support
PYTHON_USES= python
PYTHON_BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:x11-toolkits/py-qt4-gui
PYTHON_RUN_DEPENDS:= ${PYTHON_BUILD_DEPENDS}
PYTHON_CONFIGURE_ENV= PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} \
PYTHON_VERSION=${PYTHON_VERSION}
NLS_USE= QT4=linguisttools_build
post-extract:
${CP} ${FILESDIR}/build.conf ${WRKSRC}
post-patch:
${REINPLACE_CMD} -e \
's|/usr/local/qtiplot/fitPlugins|${DATADIR}/fitPlugins|' \
${WRKSRC}/qtiplot/src/core/ApplicationWindow.cpp
${REINPLACE_CMD} -e \
's|target.path=.*|target.path=${DATADIR}/fitPlugins|g' \
${WRKSRC}/fitPlugins/*/*.pro
${REINPLACE_CMD} -e '/^system($$$$LUPDATE/d; /^system($$$$LRELEASE/d' \
${WRKSRC}/${PORTNAME}/qtiplot.pro
post-patch-PYTHON-on:
${REINPLACE_CMD} -e \
'/^sys.path.append/s|"\."|"${DATADIR}"|' \
${WRKSRC}/${PORTNAME}/qtiplotrc.py
post-patch-PYTHON-off:
${REINPLACE_CMD} -e \
"s/SCRIPTING_LANGS.*Python//" \
${WRKSRC}/build.conf
post-patch-DEBUG-on:
${REINPLACE_CMD} -e \
"/^CONFIG.*release/s|release|debug|" \
${WRKSRC}/build.conf
post-patch-NLS-off:
${REINPLACE_CMD} -e \
"/INSTALLS.*translations/d" \
${WRKSRC}/${PORTNAME}/qtiplot.pro
pre-configure-NLS-on:
cd ${WRKSRC}/qtiplot && ${LRELEASE} -compress qtiplot.pro
post-install:
${INSTALL_DATA} ${WRKSRC}/qtiplot_logo.png ${STAGEDIR}${PREFIX}/share/pixmaps/qtiplot.png
post-install-PYTHON-on:
.for s in qtiplotrc.py qtiUtil.py
cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('${s}')"
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s}c ${STAGEDIR}${DATADIR}/${s}c
.endfor
.include <bsd.port.mk>
|