2012-10-11 13:25:19 +02:00
|
|
|
# Created by: Markus Brueffer <markus@FreeBSD.org>
|
2004-04-30 17:44:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= kst
|
2012-10-11 13:25:19 +02:00
|
|
|
DISTVERSION= 2.0.6
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 7
|
2004-04-30 17:44:32 +02:00
|
|
|
CATEGORIES= science kde
|
2011-03-30 23:20:14 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Kst%20${DISTVERSION:C/-r.*//}/
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2009-02-21 12:31:28 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2010-08-23 20:13:56 +02:00
|
|
|
COMMENT= Data viewing and plotting tool
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2013-10-23 15:08:41 +02:00
|
|
|
LIB_DEPENDS= libgsl.so:${PORTSDIR}/math/gsl
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2014-03-28 10:23:08 +01:00
|
|
|
USES= cmake pkgconfig
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= gui xml designer svg opengl \
|
2010-08-23 20:13:56 +02:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2006-08-20 12:48:09 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-03-27 23:27:42 +02:00
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
CMAKE_SOURCE_PATH= ${WRKSRC}/cmake
|
2013-10-23 15:08:41 +02:00
|
|
|
CMAKE_ARGS+= -Dkst_install_prefix=${PREFIX} \
|
|
|
|
-Dkst_pch=off
|
2006-03-27 23:27:42 +02:00
|
|
|
|
2012-05-13 19:36:50 +02:00
|
|
|
PLIST_SUB= SHLIB_VER=${PORTVERSION}
|
2006-03-27 23:27:42 +02:00
|
|
|
|
2012-10-11 13:25:19 +02:00
|
|
|
OPTIONS_DEFINE= FITS MATLAB NETCDF
|
2013-10-23 15:08:41 +02:00
|
|
|
OPTIONS_SUB= yes
|
2012-07-27 13:03:38 +02:00
|
|
|
|
|
|
|
FITS_DESC= Support for data in FITS format
|
2013-10-07 14:26:54 +02:00
|
|
|
FITS_LIB_DEPENDS= libcfitsio.so:${PORTSDIR}/astro/cfitsio
|
|
|
|
|
2012-10-11 13:25:19 +02:00
|
|
|
MATLAB_DESC= Support for data in MATLAB format
|
2014-03-28 10:23:08 +01:00
|
|
|
MATLAB_LIB_DEPENDS= libmatio.so:${PORTSDIR}/math/matio
|
2013-10-07 14:26:54 +02:00
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
NETCDF_DESC= Support for data in NetCDF format
|
2013-10-07 14:26:54 +02:00
|
|
|
NETCDF_LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
|
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-03-27 23:27:42 +02:00
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
post-patch:
|
2011-10-20 16:32:54 +02:00
|
|
|
${REINPLACE_CMD} -e '/^Exec=kst2/s,\(kst2\).*,\1 %f,' \
|
|
|
|
${WRKSRC}/src/kst/kst2.desktop
|
2010-05-22 18:19:03 +02:00
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
pre-configure:
|
2012-07-27 13:03:38 +02:00
|
|
|
.if !${PORT_OPTIONS:MFITS}
|
2011-03-30 23:20:14 +02:00
|
|
|
${REINPLACE_CMD} -e '/find_package(CFITSIO)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
|
|
|
.endif
|
2012-10-11 13:25:19 +02:00
|
|
|
.if !${PORT_OPTIONS:MMATLAB}
|
|
|
|
${REINPLACE_CMD} -e '/find_package(Matio)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
|
|
|
.endif
|
2012-07-27 13:03:38 +02:00
|
|
|
.if !${PORT_OPTIONS:MNETCDF}
|
2011-03-30 23:20:14 +02:00
|
|
|
${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
|
|
|
.endif
|
2010-11-21 21:33:18 +01:00
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
.include <bsd.port.mk>
|