aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-mayavi/Makefile
blob: 33d48e61d62b7fd7927e90e6901bff4343864059 (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
# Created by: Vladimir Chukharev

PORTNAME=	mayavi
DISTVERSION=	4.7.2
PORTREVISION=	2
CATEGORIES=	graphics science python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Application and library for 3D visualization and plotting in Python

LICENSE=			BSD3CLAUSE LGPL21 LGPL20 EPL LGPL3 BSD2CLAUSE APACHE11 # see ${WRKSRC}/image_LICENSE.txt
LICENSE_COMB=			multi
LICENSE_FILE_BSD3CLAUSE=	${WRKSRC}/LICENSE.txt
LICENSE_FILE_LGPL21=		${WRKSRC}/image_LICENSE_Nuvola.txt
LICENSE_FILE_LGPL20=		${WRKSRC}/image_LICENSE_CP.txt
LICENSE_FILE_EPL=		${WRKSRC}/image_LICENSE_Eclipse.txt
LICENSE_FILE_LGPL3=		${WRKSRC}/image_LICENSE_OOo.txt
LICENSE_FILE_BSD2CLAUSE=	${WRKSRC}/LICENSE_YORICK.txt
LICENSE_FILE_APACHE11=		${WRKSRC}/LICENSE_COLORBREWER.txt

BUILD_DEPENDS=	vtk9>0:math/vtk9 \
		${PYNUMPY} \
		${PY_SPHINX} \
		sphinx-build:textproc/py-sphinx@${PY_FLAVOR}
RUN_DEPENDS=	vtk9>0:math/vtk9 \
		${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}apptools>0:devel/py-apptools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}envisage>0:devel/py-envisage@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pyface>=6.0.0:devel/py-pyface@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}traits>=4.6.0:devel/py-traits@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}traitsui>=6.0.0:graphics/py-traitsui@${PY_FLAVOR}

USES=		python:3.6+ shebangfix
USE_PYTHON=	noflavors distutils autoplist # noflavors to force python to be of the same version as in vtk9, which always has default python version

USE_WX=		3.0+
WX_COMPS=	python:run

SHEBANG_FILES=	mayavi/tests/csv_files/csv_2_py

POST_PLIST=	fix-plist

post-install:
	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tvtk/array_ext*.so

fix-plist:
	@${REINPLACE_CMD} -e "s|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}/mayavi/preferences/__pycache__$$||" ${TMPPLIST}
	@${REINPLACE_CMD} -e "s|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}/tvtk/plugins/scene/__pycache__$$||" ${TMPPLIST}

.include <bsd.port.mk>