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

(-)/home/makc/porting/ports/math/qtiplot/Makefile (-12 / +21 lines)
Lines 6-21 Link Here
6
#
6
#
7
7
8
PORTNAME=	qtiplot
8
PORTNAME=	qtiplot
9
PORTVERSION=	0.8.5
9
PORTVERSION=	0.8.6.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
DISTNAME=	${PORTNAME}-0.8.6-2
12
13
13
MAINTAINER=	makc@issp.ac.ru
14
MAINTAINER=	makc@issp.ac.ru
14
COMMENT=	An Origin clone for data analysis and scientific plotting
15
COMMENT=	An Origin clone for data analysis and scientific plotting
15
16
16
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
17
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
17
LIB_DEPENDS=	gsl.9:${PORTSDIR}/math/gsl \
18
LIB_DEPENDS=	gsl.9:${PORTSDIR}/math/gsl \
18
		qwt:${PORTSDIR}/x11-toolkits/qwt \
19
		origin.0:${PORTSDIR}/math/liborigin \
19
		qwtplot3d:${PORTSDIR}/math/qwtplot3d
20
		qwtplot3d:${PORTSDIR}/math/qwtplot3d
20
21
21
USE_BZIP2=	yes
22
USE_BZIP2=	yes
Lines 33-65 Link Here
33
IGNORE=		does not compile on FreeBSD 4.x
34
IGNORE=		does not compile on FreeBSD 4.x
34
.endif
35
.endif
35
36
36
.if exists(${X11BASE}/share/qt/mkspecs/freebsd-g++)
37
QMAKE=		qmake
37
QMAKESPEC=	${X11BASE}/share/qt/mkspecs/freebsd-g++
38
.else
39
QMAKESPEC=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
38
QMAKESPEC=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
40
.endif
39
40
QPRO_DIRS=	. \
41
		3rdparty/qwt \
42
		fitPlugins/fitRational0 \
43
		fitPlugins/fitRational1 \
44
		qtiplot
41
45
42
post-patch:
46
post-patch:
47
.for d in ${QPRO_DIRS}
43
	@${REINPLACE_CMD} -e \
48
	@${REINPLACE_CMD} -e \
44
		"s:../3rdparty/qwt/include:${LOCALBASE}/include/qwt:" \
49
		"s:../3rdparty/liborigin/include:${LOCALBASE}/include:" \
45
		-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \
50
		-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \
46
		-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \
51
		-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \
47
		-e "/^unix:LIBS/s:../3rdparty/qwt/lib/libqwt.a:-L ${LOCALBASE}/lib -lqwt:" \
48
		-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DOCSDIR}:" \
52
		-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DOCSDIR}:" \
49
		${WRKSRC}/${PORTNAME}.pro
53
		${WRKSRC}/${d}/*.pro
54
.endfor
50
55
51
do-configure:
56
do-configure:
52
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
57
.for d in ${QPRO_DIRS}
53
		-spec ${QMAKESPEC} ${PORTNAME}.pro
58
	@cd ${WRKSRC}/${d} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
59
		-spec ${QMAKESPEC} *.pro
60
.endfor
54
61
55
post-configure:
62
post-configure:
63
.for d in ${QPRO_DIRS}
56
	@${REINPLACE_CMD} -e \
64
	@${REINPLACE_CMD} -e \
57
		's|^CC .*|CC=${CC}|; \
65
		's|^CC .*|CC=${CC}|; \
58
		 s|^CXX .*|CXX=${CXX}|; \
66
		 s|^CXX .*|CXX=${CXX}|; \
59
		 s|-pipe||; \
67
		 s|-pipe||; \
60
		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
68
		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
61
		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \
69
		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \
62
		${WRKSRC}/Makefile
70
		${WRKSRC}/${d}/Makefile
71
.endfor
63
72
64
do-install:
73
do-install:
65
	${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${PREFIX}/bin
74
	${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${PREFIX}/bin
(-)/home/makc/porting/ports/math/qtiplot/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qtiplot-0.8.5.tar.bz2) = aa7350a3e5f2662077684421e0deb21f
1
MD5 (qtiplot-0.8.6-2.tar.bz2) = 6025c050b291671ffcfcac7949e97c4e
2
SHA256 (qtiplot-0.8.5.tar.bz2) = 81831d8dfaddbdf32d85a6e7eaf0e54e2321e2fba6ffaabfe6943bc326a6f874
2
SHA256 (qtiplot-0.8.6-2.tar.bz2) = 64342a9c19ab7fff8dd1ea7e1dafe331709393a6ad892ffda8138ec07c3df657
3
SIZE (qtiplot-0.8.5.tar.bz2) = 530579
3
SIZE (qtiplot-0.8.6-2.tar.bz2) = 655993

Return to bug 102816