blob: 38c5d901d1e8497822aea05316f172d4ca804191 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $NetBSD: Makefile,v 1.20 2022/04/13 23:42:45 tnn Exp $
DISTNAME= VTK-9.0.3
PKGREVISION= 3
PKGNAME= ${DISTNAME:tl}
CATEGORIES= graphics
MASTER_SITES= https://www.vtk.org/files/release/${PKGVERSION_NOREV:R}/
MAINTAINER= prlw1@cam.ac.uk
HOMEPAGE= https://vtk.org/
COMMENT= Visualization toolkit
LICENSE= modified-bsd
BUILD_DEPENDS= ninja-build-[0-9]*:../../devel/ninja-build
USE_CMAKE= yes
USE_LANGUAGES= c c++11
CONFIGURE_DIRS= build
CMAKE_ARG_PATH= ..
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DVTK_LEGACY_REMOVE=ON
CMAKE_ARGS+= -DVTK_USE_MPI=OFF
CMAKE_ARGS+= -DVTK_USE_CUDA=OFF
CMAKE_ARGS+= -DVTK_ENABLE_LOGGING=OFF
CMAKE_ARGS+= -DVTK_BUILD_ALL_MODULES=OFF
CMAKE_ARGS+= -DVTK_ENABLE_REMOTE_MODULES=OFF
CMAKE_ARGS+= -DVTK_ENABLE_KITS=OFF
CMAKE_ARGS+= -DVTK_USE_EXTERNAL=ON
CMAKE_ARGS+= -DVTK_USE_TK=OFF
CMAKE_ARGS+= -DVTK_ENABLE_WRAPPING=OFF
CMAKE_ARGS+= -DVTK_WRAP_PYTHON=OFF
CMAKE_ARGS+= -DVTK_WRAP_JAVA=OFF
CMAKE_ARGS+= -DVTK_FORBID_DOWNLOADS=ON
# https://discourse.vtk.org/t/9-0-0-rc1-contextopengl2-not-built/2933
CMAKE_ARGS+= -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2=YES
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/build/lib
PLIST_VARS+= cocoa opengl
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
PLIST.cocoa= yes
.else
PLIST.opengl= yes
.endif
post-extract:
${MKDIR} ${WRKSRC}/build
.include "options.mk"
.include "../../archivers/lz4/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/hdf5/buildlink3.mk"
#.include "../../devel/loguru/buildlink3.mk"
.include "../../devel/netcdf-cxx/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gl2ps/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/double-conversion/buildlink3.mk"
.include "../../math/eigen3/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../print/libharu/buildlink3.mk"
.include "../../textproc/PEGTL/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/jsoncpp/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/pugixml/buildlink3.mk"
.include "../../textproc/utf8-cpp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|