aboutsummaryrefslogtreecommitdiffstats
path: root/math/labplot/Makefile
blob: 9337233fb4341b6612c5ed049986a9a5e49353d0 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Created by: Kay Lehmann <kay_lehmann@web.de>
# $FreeBSD$

PORTNAME=   labplot
DISTVERSION=    2.0.0.alpha3
CATEGORIES= math kde
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Data plotting and function analysis tool for KDE

LICENCE=    GPLv2

LIB_DEPENDS=    gsl:${PORTSDIR}/math/gsl

OPTIONS_DEFINE= CDF HDF5 NETCDF
CDF_DESC=   CDF data support
HDF5_DESC=  HDF5 data support
NETCDF_DESC=    NetCDF data support

USE_BZIP2=  yes
USE_XORG=   xft xpm
USE_KDE4=   automoc4 kdelibs kdeprefix
USE_QT4=    moc_build qmake_build rcc_build uic_build
USE_CMAKE=  yes
CMAKE_ARGS= -DOPJ_LIBRARY:STRING=""
MAKE_JOBS_SAFE= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCDF}
LIB_DEPENDS+=   cdf:${PORTSDIR}/science/cdf
.else
CMAKE_ARGS+=    -DCDF_LIBRARY:STRING=""
.endif

.if ${PORT_OPTIONS:MHDF5}
LIB_DEPENDS+=   hdf5:${PORTSDIR}/science/hdf5
.else
CMAKE_ARGS+=    -DHDF5_LIBRARY:STRING=""
.endif

.if ${PORT_OPTIONS:MNETCDF}
LIB_DEPENDS+=   netcdf:${PORTSDIR}/science/netcdf
.else
CMAKE_ARGS+=    -DNETCDF_LIBRARY:STRING=""
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/CMakeLists.txt
    @${REINPLACE_CMD} -e \
        's|i->\(children<T>\)|\1|' \
        ${WRKSRC}/src/backend/core/AbstractAspect.h

.include <bsd.port.mk>