aboutsummaryrefslogtreecommitdiff
path: root/math/labplot/Makefile
blob: 9228497067182cd9d45a2aae403804eed8a9a58b (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
57
58
59
60
PORTNAME=	labplot
DISTVERSION=	2.8.2
PORTREVISION=	18
CATEGORIES=	math kde
MASTER_SITES=	KDE/stable/${PORTNAME}/${PORTVERSION}

PATCH_SITES=	https://invent.kde.org/education/labplot/-/commit/
PATCHFILES=	375786ca124a1a6773c609236f8341890f23e1d8.diff:-p1 \
		9e77b593030fdae0fbbad113415483b3ca51a654.diff:-p1

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Data plotting and function analysis tool by KDE

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libgsl.so:math/gsl \
		liblz4.so:archivers/liblz4 \
		libspectre.so:print/libspectre \
		libsz.so:science/libaec

USES=		bison cmake compiler:c++11-lang desktop-file-utils kde:5 qt:5 \
		shared-mime-info tar:xz
USE_KDE=	archive attica auth bookmarks codecs completion config configwidgets \
		coreaddons crash guiaddons i18n iconthemes itemviews \
		jobwidgets kio newstuff notifications parts \
		service solid sonnet syntaxhighlighting textwidgets unitconversion \
		widgetsaddons windowsystem xmlgui \
		doctools_build ecm_build
USE_QT=		concurrent core dbus gui network printsupport serialport \
		sql svg widgets xml \
		buildtools_build qmake_build testlib_build

CMAKE_OFF=	ENABLE_LIBCERF
CMAKE_ON=	CMAKE_DISABLE_FIND_PACKAGE_KUserFeedback

DATADIR=	${PREFIX}/share/labplot2

OPTIONS_DEFINE=		CANTOR FITS FFTW3 HDF5 NETCDF
OPTIONS_DEFAULT=	${OPTIONS_DEFINE}

CANTOR_DESC=		Build with Cantor support
CANTOR_CMAKE_BOOL=	ENABLE_CANTOR
CANTOR_LIB_DEPENDS=	libcantorlibs.so:math/cantor \
			libpoppler.so:graphics/poppler \
			libpoppler-qt5.so:graphics/poppler-qt5
FITS_DESC=		Flexible Image Transport System Data Format (FITS) Library
FITS_CMAKE_BOOL=	ENABLE_FITS
FITS_LIB_DEPENDS=	libcfitsio.so:astro/cfitsio
FFTW3_DESC=		Build with FFTW support
FFTW3_CMAKE_BOOL=	ENABLE_FFTW
FFTW3_LIB_DEPENDS=	libfftw3.so:math/fftw3
HDF5_DESC=		Build with HDF5 support
HDF5_CMAKE_BOOL=	ENABLE_HDF5
HDF5_LIB_DEPENDS=	libhdf5.so:science/hdf5
NETCDF_DESC=		Build with NetCDF support
NETCDF_CMAKE_BOOL=	ENABLE_NETCDF
NETCDF_LIB_DEPENDS=	libnetcdf.so:science/netcdf

.include <bsd.port.mk>