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
|
2018-04-07 18:40:01 +02:00
|
|
|
DISTVERSION= ${KST_VERSION}.${KST_DATE}
|
2018-06-23 10:27:13 +02:00
|
|
|
PORTREVISION= 1
|
2004-04-30 17:44:32 +02:00
|
|
|
CATEGORIES= science kde
|
|
|
|
|
2018-08-31 10:57:17 +02:00
|
|
|
PATCH_SITES= https://github.com/KDE/kst-plot/commit/
|
|
|
|
PATCHFILES= de3110c59874.patch:-p1
|
|
|
|
|
2018-04-07 18:40:01 +02: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
|
|
|
|
2018-04-07 18:40:01 +02:00
|
|
|
LIB_DEPENDS= libgsl.so:math/gsl \
|
|
|
|
libtiff.so:graphics/tiff
|
2004-04-30 17:44:32 +02:00
|
|
|
|
2018-04-07 18:40:01 +02:00
|
|
|
KST_VERSION= 2.0.8
|
|
|
|
KST_DATE= 20180405
|
|
|
|
|
|
|
|
USES= cmake:outsource desktop-file-utils pkgconfig \
|
|
|
|
shared-mime-info
|
2018-04-07 20:49:01 +02:00
|
|
|
_USE_QT4= corelib gui xml designer network svg linguisttools_build \
|
2010-08-23 20:13:56 +02:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2018-04-07 20:49:01 +02:00
|
|
|
_USE_QT5= concurrent core gui network printsupport svg widgets xml \
|
2014-11-07 12:42:30 +01:00
|
|
|
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
|
|
|
|
2018-04-07 18:40:01 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= Kst-plot
|
|
|
|
GH_TAGNAME= 6afa76a
|
|
|
|
|
2013-10-23 15:08:41 +02:00
|
|
|
CMAKE_ARGS+= -Dkst_install_prefix=${PREFIX} \
|
2018-04-07 18:40:01 +02:00
|
|
|
-Dkst_pch=off \
|
|
|
|
-Dkst_version_string=${KST_VERSION} \
|
|
|
|
-Dkst_revision=${KST_DATE}
|
2006-03-27 23:27:42 +02:00
|
|
|
|
2018-04-07 18:40:01 +02:00
|
|
|
PLIST_SUB= SHLIB_VER=${KST_VERSION}
|
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
|
2018-04-07 18:40:01 +02:00
|
|
|
OPTIONS_DEFAULT= QT5
|
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
|
2018-06-28 19:39:53 +02:00
|
|
|
QT4_USES= qt:4
|
|
|
|
QT4_USE= ${_USE_QT4:S/^/QT=/}
|
|
|
|
QT5_USES= qt:5
|
|
|
|
QT5_USE= ${_USE_QT5:S/^/QT=/}
|
2014-11-07 12:42:30 +01:00
|
|
|
QT5_CMAKE_ON= -Dkst_qt5=on
|
|
|
|
|
2011-03-30 23:20:14 +02:00
|
|
|
post-patch:
|
2018-04-07 18:40:01 +02:00
|
|
|
${REINPLACE_CMD} -e '/find_package(Getdata)/d' \
|
|
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
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>
|