summaryrefslogtreecommitdiffstats
path: root/math/vtk
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2004-02-13 03:53:48 +0000
committerlinimon <linimon@FreeBSD.org>2004-02-13 03:53:48 +0000
commit7caf0dc6995cd4dda62aaf638334f3cc616ea9bf (patch)
treeddea5a2c01c976889f7f3e64e73108405706611b /math/vtk
parentcf7061badbfa8861e75787e5dae5bfd2d47cf1e1 (diff)
downloadFreeBSD-ports-7caf0dc6995cd4dda62aaf638334f3cc616ea9bf.zip
FreeBSD-ports-7caf0dc6995cd4dda62aaf638334f3cc616ea9bf.tar.gz
During building executables on FreeBSD 4.X the "undefined reference to
`pthread_*'" was thrown. Fix this, and also some other cosmetic bugs. PR: ports/62446 Submitted by: Mykola Khotyaintsev <ko@irfu.se> (maintainer)
Diffstat (limited to 'math/vtk')
-rw-r--r--math/vtk/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/math/vtk/Makefile b/math/vtk/Makefile
index 6dca17b..118ff64 100644
--- a/math/vtk/Makefile
+++ b/math/vtk/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
OpenPOWER on IntegriCloud