aboutsummaryrefslogtreecommitdiffstats
path: root/math/qgfe/Makefile
blob: 6367205bac07c1216889afdd528d9194689e72a0 (plain) (blame)
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
# ex:ts=8
# Ports collection makefile for:    qgfe
# Date created:         Aug 30, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   qgfe
PORTVERSION=    1.0
CATEGORIES= math
MASTER_SITES=   http://perso.club-internet.fr/pascal.brachet/qgfe/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Gnuplot Front End

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake
RUN_DEPENDS=    gnuplot:${PORTSDIR}/math/gnuplot

USE_BZIP2=  yes
USE_REINPLACE=  yes
USE_QT_VER= 3
MAKE_ENV=   QTDIR=${X11BASE} \
        MOC=${MOC}

PLIST_FILES=    bin/qgfe

post-patch:
    @${REINPLACE_CMD} -e "s@strstream.h@sstream@" \
        -e "s,ostrstream,ostringstream," ${WRKSRC}/logScaleOp.cpp

pre-build:
    @cd ${WRKSRC}; qmake -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ ${PORTNAME}.pro

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qgfe ${PREFIX}/bin

.include <bsd.port.mk>