2013-03-14 00:18:56 +00:00
|
|
|
# Created by: Kay Lehmann <kay_lehmann@web.de>
|
2005-12-01 01:04:04 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
PORTNAME= labplot
|
2013-11-02 14:48:00 +00:00
|
|
|
DISTVERSION= 2.0.0.beta1
|
2005-12-01 01:04:04 +00:00
|
|
|
CATEGORIES= math kde
|
2013-03-14 00:18:56 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
|
2005-12-01 01:04:04 +00:00
|
|
|
|
2011-07-07 17:34:13 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-03-14 00:18:56 +00:00
|
|
|
COMMENT= Data plotting and function analysis tool for KDE
|
2005-12-01 01:04:04 +00:00
|
|
|
|
2013-11-02 14:48:00 +00:00
|
|
|
LICENCE= GPLv2
|
2005-12-01 01:04:04 +00:00
|
|
|
|
2013-11-02 14:48:00 +00:00
|
|
|
LIB_DEPENDS= libgsl.so:${PORTSDIR}/math/gsl
|
2012-12-30 12:03:51 +00:00
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
OPTIONS_DEFINE= CDF HDF5 NETCDF
|
|
|
|
CDF_DESC= CDF data support
|
|
|
|
HDF5_DESC= HDF5 data support
|
|
|
|
NETCDF_DESC= NetCDF data support
|
2008-06-19 10:52:03 +00:00
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
USE_BZIP2= yes
|
2013-11-02 14:48:00 +00:00
|
|
|
USES= cmake
|
2013-03-14 00:18:56 +00:00
|
|
|
USE_XORG= xft xpm
|
2013-11-02 14:48:00 +00:00
|
|
|
USE_GCC= yes
|
2013-03-14 00:18:56 +00:00
|
|
|
USE_KDE4= automoc4 kdelibs kdeprefix
|
|
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build
|
|
|
|
CMAKE_ARGS= -DOPJ_LIBRARY:STRING=""
|
2008-06-19 10:52:03 +00:00
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2008-06-19 10:52:03 +00:00
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MCDF}
|
2013-11-02 14:48:00 +00:00
|
|
|
LIB_DEPENDS+= libcdf.so:${PORTSDIR}/science/cdf
|
2008-06-19 10:52:03 +00:00
|
|
|
.else
|
2013-03-14 00:18:56 +00:00
|
|
|
CMAKE_ARGS+= -DCDF_LIBRARY:STRING=""
|
2008-06-19 10:52:03 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MHDF5}
|
2013-11-02 14:48:00 +00:00
|
|
|
LIB_DEPENDS+= libhdf5.so:${PORTSDIR}/science/hdf5
|
2008-06-19 10:52:03 +00:00
|
|
|
.else
|
2013-03-14 00:18:56 +00:00
|
|
|
CMAKE_ARGS+= -DHDF5_LIBRARY:STRING=""
|
2008-06-19 10:52:03 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MNETCDF}
|
2013-11-02 14:48:00 +00:00
|
|
|
LIB_DEPENDS+= libnetcdf.so:${PORTSDIR}/science/netcdf
|
2008-06-19 10:52:03 +00:00
|
|
|
.else
|
2013-03-14 00:18:56 +00:00
|
|
|
CMAKE_ARGS+= -DNETCDF_LIBRARY:STRING=""
|
2008-06-19 10:52:03 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
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
|
2013-11-02 14:48:00 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|!isnan|!std::isnan|' \
|
|
|
|
${WRKSRC}/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp
|
2008-06-19 10:52:03 +00:00
|
|
|
|
2013-03-14 00:18:56 +00:00
|
|
|
.include <bsd.port.mk>
|