summaryrefslogtreecommitdiff
path: root/science/scidavis/Makefile
blob: 203845f00e3943419f673b06e0dbae1e0f705700 (plain)
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
PORTNAME=	scidavis
PORTVERSION=	2.9.2
CATEGORIES=	science

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Scientific data analysis and visualization
WWW=		http://scidavis.sourceforge.net

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

LIB_DEPENDS=	libgsl.so:math/gsl \
		libmuparser.so:math/muparser \
		libpng.so:graphics/png \
		libqwt5-qt5.so:x11-toolkits/qwt5-qt5 \
		libqwtplot3d-qt5.so:math/qwtplot3d \
		liborigin.so:math/liborigin

USES=		cmake compiler:c++17-lang desktop-file-utils gl pkgconfig \
		qt:5 shared-mime-info
USE_GL=		gl glu
USE_QT=		core gui opengl printsupport svg widgets xml \
		buildtools:build linguisttools:build qmake:build

USE_GITHUB=	yes
GH_ACCOUNT=	highperformancecoder
CMAKE_ON=	ORIGIN_IMPORT
CMAKE_OFF=	DOWNLOAD_LINKS \
		SEARCH_FOR_UPDATES

PORTSCOUT=	skipv:qtiplot

OPTIONS_DEFINE=	DOCS NLS PYTHON
OPTIONS_DEFAULT=	PYTHON
OPTIONS_SUB=	yes

PYTHON_DESC=	Python scripting support
PYTHON_USES=	pyqt:5 python:3.6+
PYTHON_USE=	PYQT=pyqt5 sip
PYTHON_CMAKE_ON=	-DPython3_EXECUTABLE=${PYTHON_CMD} \
			-DSCRIPTING_PYTHON=True
PYTHON_CMAKE_OFF=	-DSCRIPTING_PYTHON=False

post-install-PYTHON-on:
	${MV} ${STAGEDIR}${PREFIX}/etc/scidavisrc.py \
		${STAGEDIR}${PREFIX}/etc/scidavisrc.py.sample

.include <bsd.port.mk>