Lines 15-21
Link Here
|
15 |
|
15 |
|
16 |
PORTNAME= vtk |
16 |
PORTNAME= vtk |
17 |
PORTVERSION= 4.3.0 |
17 |
PORTVERSION= 4.3.0 |
18 |
PORTREVISION= 1 |
18 |
PORTREVISION= 2 |
19 |
CATEGORIES= math graphics |
19 |
CATEGORIES= math graphics |
20 |
MASTER_SITES= http://ovt.irfu.se/vtk/files/ |
20 |
MASTER_SITES= http://ovt.irfu.se/vtk/files/ |
21 |
DISTFILES?= VTK-${PORTVERSION}-cvs${CVSDATE}.tar.gz |
21 |
DISTFILES?= VTK-${PORTVERSION}-cvs${CVSDATE}.tar.gz |
Lines 39-44
Link Here
|
39 |
|
39 |
|
40 |
PLIST_SUB+= LIBVER=${LIBVER} PKGNAME=${PKGNAME} |
40 |
PLIST_SUB+= LIBVER=${LIBVER} PKGNAME=${PKGNAME} |
41 |
|
41 |
|
|
|
42 |
.include <bsd.port.pre.mk> |
43 |
|
42 |
.if defined(WRAP) || !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-headers" |
44 |
.if defined(WRAP) || !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-headers" |
43 |
|
45 |
|
44 |
WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-build |
46 |
WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-build |
Lines 51-58
Link Here
|
51 |
tiff.4:${PORTSDIR}/graphics/tiff |
53 |
tiff.4:${PORTSDIR}/graphics/tiff |
52 |
|
54 |
|
53 |
.if defined(WITH_TESTING) && (!defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-java") |
55 |
.if defined(WITH_TESTING) && (!defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-java") |
54 |
RUN_DEPENDS= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data |
56 |
RUN_DEPENDS+= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data |
55 |
BUILD_DEPENDS= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data |
57 |
BUILD_DEPENDS+= ${VTKDATAROOT}/VTKData.readme:${PORTSDIR}/math/vtk-data |
56 |
.endif |
58 |
.endif |
57 |
|
59 |
|
58 |
ONLY_FOR_ARCHS= i386 # was not tested on other ARCHS |
60 |
ONLY_FOR_ARCHS= i386 # was not tested on other ARCHS |
Lines 61-67
Link Here
|
61 |
INSTALLS_SHLIB= yes |
63 |
INSTALLS_SHLIB= yes |
62 |
|
64 |
|
63 |
# if optimization flag -O2 or -O3 is present - use g++33 |
65 |
# if optimization flag -O2 or -O3 is present - use g++33 |
64 |
# There is a problems compiling Imaging/vtkImageEuclideanDistance.o by gcc 3.2.2 |
66 |
# There is a problem compiling Imaging/vtkImageEuclideanDistance.o by gcc 3.2.2 |
65 |
# with -02 -march=pentium3 |
67 |
# with -02 -march=pentium3 |
66 |
.if defined(CXXFLAGS) |
68 |
.if defined(CXXFLAGS) |
67 |
TTT= "${CXXFLAGS}" # this quotes are VERY important! |
69 |
TTT= "${CXXFLAGS}" # this quotes are VERY important! |
Lines 71-83
Link Here
|
71 |
.endif |
73 |
.endif |
72 |
.endif |
74 |
.endif |
73 |
|
75 |
|
|
|
76 |
.if ${OSVERSION} < 500016 |
77 |
ADDITIONAL_EXE_LINKER_FLAGS= ${PTHREAD_LIBS} |
78 |
.endif |
79 |
|
74 |
CMAKE?= ${LOCALBASE}/bin/cmake |
80 |
CMAKE?= ${LOCALBASE}/bin/cmake |
75 |
CXXFLAGS+= -Wno-deprecated |
81 |
CXXFLAGS+= -Wno-deprecated |
76 |
CMAKE_DEFS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ |
82 |
CMAKE_DEFS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ |
77 |
-DBUILD_SHARED_LIBS:BOOL=ON \ |
83 |
-DBUILD_SHARED_LIBS:BOOL=ON \ |
78 |
-DCMAKE_BUILD_TYPE:STRING=Release \ |
84 |
-DCMAKE_BUILD_TYPE:STRING=Release \ |
79 |
-DCMAKE_SHARED_LINKER_FLAGS:STRING="${LINKERFLAGS}" \ |
85 |
-DCMAKE_SHARED_LINKER_FLAGS:STRING="${LINKERFLAGS}" \ |
80 |
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LINKERFLAGS}" \ |
86 |
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LINKERFLAGS} ${ADDITIONAL_EXE_LINKER_FLAGS}" \ |
81 |
-DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}"\ |
87 |
-DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}"\ |
82 |
-DCMAKE_USE_PTHREADS:BOOL=ON \ |
88 |
-DCMAKE_USE_PTHREADS:BOOL=ON \ |
83 |
-DCMAKE_C_COMPILER:STRING='${CC}' \ |
89 |
-DCMAKE_C_COMPILER:STRING='${CC}' \ |
Lines 227-231
Link Here
|
227 |
post-install: print-pkg-message |
233 |
post-install: print-pkg-message |
228 |
|
234 |
|
229 |
.ifndef(PKGNAMESUFFIX) |
235 |
.ifndef(PKGNAMESUFFIX) |
230 |
.include <bsd.port.mk> |
236 |
.include <bsd.port.post.mk> |
231 |
.endif |
237 |
.endif |