blob: 9b87cec9c32fe773eaab10e9880788f8b26a52f0 (
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
|
# $NetBSD: options.mk,v 1.2 2021/05/08 22:03:14 thor Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pcl
# Qt could be an option, but relies on vtk's qt support, too.
# Maybe vtk will always include Qt and then we will bundle it
# here, too.
PKG_SUPPORTED_OPTIONS= vtk
PKG_SUGGESTED_OPTIONS= vtk
.include "../../mk/bsd.options.mk"
PLIST_VARS+= vtk qt
.if !empty(PKG_OPTIONS:Mvtk)
CMAKE_ARGS+= -DWITH_VTK=TRUE
PLIST.vtk= yes
.include "../../graphics/vtk/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
. if ${PKG_BUILD_OPTIONS.vtk:Mqt}
CMAKE_ARGS+= -DWITH_QT=TRUE
CMAKE_ARGS+= -DBUILD_apps=TRUE
PLIST.qt= yes
.include "../../x11/qt5-qtbase/buildlink3.mk"
. endif
.else
CMAKE_ARGS+= -DWITH_VTK=FALSE
CMAKE_ARGS+= -DWITH_QT=FALSE
.endif
|