summaryrefslogtreecommitdiff
path: root/graphics/vtk/Makefile.vtkdist
blob: 0962cd7bc7503c02943ab180b178b7b4fec30dae (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
# $NetBSD: Makefile.vtkdist,v 1.2 2004/08/27 06:29:08 jlam Exp $

.include "../../graphics/vtk/Makefile.common"

# they change minor releases w/o changing distfile names
VTKDIST_VERSION=	4.2.6
DISTNAME=		VTK-4.2-LatestRelease
DIST_SUBDIR=		VTK-4.2.6
WRKSRC=       		${WRKDIR}/VTK

MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=vtk/}

DISTINFO_FILE=		${.CURDIR}/../vtk/distinfo
PATCHDIR=		${.CURDIR}/../vtk/patches

BUILD_DEPENDS+=		cmake>=1.6.6:../../devel/cmake

VTK_LIBDIR=	${PREFIX}/lib/vtk

VTK_CMAKE_OPT+= -DCMAKE_INSTALL_PREFIX:STRING=${PREFIX} \
	-DCMAKE_SHARED_LINKER_FLAGS:STRING=${COMPILER_RPATH_FLAG}${VTK_LIBDIR} \
	-DCMAKE_MODULE_LINKER_FLAGS:STRING=${COMPILER_RPATH_FLAG}${VTK_LIBDIR} \
	-DVTK_USE_HYBRID:BOOL=ON

do-configure:
	cd ${WRKSRC} && cmake . ${VTK_CMAKE_OPT}

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} != "mips" || ${MACHINE_ARCH} != "vax"
VTK_CMAKE_OPT+=		-DBUILD_SHARED_LIBS:BOOL=ON
.endif