1 # $NetBSD: Makefile.vtkdist,v 1.8 2007/02/22 19:26:36 wiz Exp $
3 .include "../../graphics/vtk/Makefile.common"
5 # they change minor releases w/o changing distfile names
7 DISTNAME= VTK-4.2-LatestRelease
11 DISTINFO_FILE= ${.CURDIR}/../vtk/distinfo
12 PATCHDIR= ${.CURDIR}/../vtk/patches
14 VTK_LIBDIR= ${PREFIX}/lib/vtk
16 VTK_CMAKE_OPT+= -DCMAKE_INSTALL_PREFIX:STRING=${PREFIX:Q} \
17 -DCMAKE_INSTALL_RPATH:STRING=${PREFIX:Q}/lib:${X11BASE:Q}/lib${LIBABISUFFIX:Q}:${VTK_LIBDIR:Q} \
18 -DCMAKE_SKIP_BUILD_RPATH:BOOL=ON \
19 -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
20 -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON \
21 -DVTK_USE_HYBRID:BOOL=ON
24 cd ${WRKSRC} && cmake . ${VTK_CMAKE_OPT}
26 .include "../../mk/bsd.prefs.mk"
28 .if ${MACHINE_ARCH} != "mips" || ${MACHINE_ARCH} != "vax"
29 VTK_CMAKE_OPT+= -DBUILD_SHARED_LIBS:BOOL=ON
32 .include "../../devel/cmake/buildlink3.mk"