aboutsummaryrefslogtreecommitdiff
path: root/math/vtk5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/vtk5/Makefile')
-rw-r--r--math/vtk5/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/math/vtk5/Makefile b/math/vtk5/Makefile
index 6dca17bfa720..118ff644ca1b 100644
--- a/math/vtk5/Makefile
+++ b/math/vtk5/Makefile
@@ -15,7 +15,7 @@
PORTNAME= vtk
PORTVERSION= 4.3.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math graphics
MASTER_SITES= http://ovt.irfu.se/vtk/files/
DISTFILES?= VTK-${PORTVERSION}-cvs${CVSDATE}.tar.gz
@@ -39,6 +39,8 @@ VTK_KITS= Common Filtering Graphics Hybrid IO Imaging Rendering Parallel Patente
PLIST_SUB+= LIBVER=${LIBVER} PKGNAME=${PKGNAME}
+.include <bsd.port.pre.mk>
+
.if defined(WRAP) || !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-headers"
WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-build
@@ -51,8 +53,8 @@ LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 \
tiff.4:${PORTSDIR}/graphics/tiff
.if defined(WITH_TESTING) && (!defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-java")
-RUN_DEPENDS= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data
-BUILD_DEPENDS= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data
+RUN_DEPENDS+= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data
+BUILD_DEPENDS+= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data
.endif
ONLY_FOR_ARCHS= i386 # was not tested on other ARCHS
@@ -61,7 +63,7 @@ USE_GL= yes
INSTALLS_SHLIB= yes
# if optimization flag -O2 or -O3 is present - use g++33
-# There is a problems compiling Imaging/vtkImageEuclideanDistance.o by gcc 3.2.2
+# There is a problem compiling Imaging/vtkImageEuclideanDistance.o by gcc 3.2.2
# with -02 -march=pentium3
.if defined(CXXFLAGS)
TTT= "${CXXFLAGS}" # this quotes are VERY important!
@@ -71,13 +73,17 @@ USE_GCC= 3.3
.endif
.endif
+.if ${OSVERSION} < 500016
+ADDITIONAL_EXE_LINKER_FLAGS= ${PTHREAD_LIBS}
+.endif
+
CMAKE?= ${LOCALBASE}/bin/cmake
CXXFLAGS+= -Wno-deprecated
CMAKE_DEFS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_SHARED_LINKER_FLAGS:STRING="${LINKERFLAGS}" \
- -DCMAKE_EXE_LINKER_FLAGS:STRING="${LINKERFLAGS}" \
+ -DCMAKE_EXE_LINKER_FLAGS:STRING="${LINKERFLAGS} ${ADDITIONAL_EXE_LINKER_FLAGS}" \
-DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}"\
-DCMAKE_USE_PTHREADS:BOOL=ON \
-DCMAKE_C_COMPILER:STRING='${CC}' \
@@ -227,5 +233,5 @@ print-pkg-message:
post-install: print-pkg-message
.ifndef(PKGNAMESUFFIX)
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
.endif