Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / vtk / Makefile.vtkdist
blob545ec076673eb953e7980127a961142c9a2a9e88
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
6 VTKDIST_VERSION=        4.2.6
7 DISTNAME=               VTK-4.2-LatestRelease
8 DIST_SUBDIR=            VTK-4.2.6
9 WRKSRC=         ${WRKDIR}/VTK
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
23 do-configure:
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
30 .endif
32 .include "../../devel/cmake/buildlink3.mk"