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
|
2014-11-07 12:42:30 +01:00
|
|
|
DISTVERSION= 2.0.8
|
2017-10-21 22:18:16 +02:00
|
|
|
PORTREVISION= 3
|
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.*//}/
|
2014-11-07 12:42:30 +01:00
|
|
|
DISTNAME= Kst-${DISTVERSION}
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2016-10-20 17:58:12 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2010-08-23 20:13:56 +02:00
|
|
|
COMMENT= Data viewing and plotting tool
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libgsl.so:math/gsl
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2014-11-07 12:42:30 +01:00
|
|
|
USES= cmake:outsource pkgconfig
|
2015-02-24 22:46:28 +01:00
|
|
|
_USE_QT4= gui xml designer svg linguisttools_build \
|
2010-08-23 20:13:56 +02:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2014-11-07 12:42:30 +01:00
|
|
|
_USE_QT5= concurrent network printsupport widgets xml \
|
|
|
|
buildtools_build linguisttools_build qmake_build
|
2006-08-20 12:48:09 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-03-27 23:27:42 +02:00
|
|
|
|
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
|
2014-11-07 12:42:30 +01:00
|
|
|
OPTIONS_SINGLE= TOOLKIT
|
|
|
|
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
|
|
|
|
OPTIONS_DEFAULT= QT4
|
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
|
2016-04-01 16:25:16 +02:00
|
|
|
FITS_LIB_DEPENDS= libcfitsio.so:astro/cfitsio
|
2013-10-07 14:26:54 +02:00
|
|
|
|
2012-10-11 13:25:19 +02:00
|
|
|
MATLAB_DESC= Support for data in MATLAB format
|
2016-04-01 16:25:16 +02:00
|
|
|
MATLAB_LIB_DEPENDS= libmatio.so:math/matio
|
2013-10-07 14:26:54 +02:00
|
|
|
|
2014-11-13 15:26:54 +01:00
|
|
|
NETCDF_DESC= Support for data in NetCDF format (broken)
|
2016-04-01 16:25:16 +02:00
|
|
|
NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf
|
2015-08-25 12:03:08 +02:00
|
|
|
NETCDF_IGNORE= does not support NetCDF 4
|
2013-10-07 14:26:54 +02:00
|
|
|
|
2014-11-07 12:42:30 +01:00
|
|
|
TOOLKIT_DESC= Qt toolkit
|
|
|
|
QT4_USE= ${_USE_QT4:S/^/QT4=/}
|
|
|
|
QT5_USE= ${_USE_QT5:S/^/QT5=/}
|
|
|
|
QT5_CMAKE_ON= -Dkst_qt5=on
|
|
|
|
|
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
|
|
|
|
2015-08-25 12:03:08 +02:00
|
|
|
post-patch-FITS-off:
|
2011-03-30 23:20:14 +02:00
|
|
|
${REINPLACE_CMD} -e '/find_package(CFITSIO)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
2015-08-25 12:03:08 +02:00
|
|
|
|
|
|
|
post-patch-MATLAB-off:
|
2012-10-11 13:25:19 +02:00
|
|
|
${REINPLACE_CMD} -e '/find_package(Matio)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
2015-08-25 12:03:08 +02:00
|
|
|
|
|
|
|
post-patch-NETCDF-off:
|
2011-03-30 23:20:14 +02:00
|
|
|
${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
2010-11-21 21:33:18 +01:00
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
.include <bsd.port.mk>
|