diff options
author | bapt <bapt@FreeBSD.org> | 2013-11-17 16:18:51 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-11-17 16:18:51 +0800 |
commit | 72e516563fbd409ee75918be382dea76646dd113 (patch) | |
tree | b1970305d600112f4ec46111a4acedfd3470fc57 /math | |
parent | 34f5bc9a53c35cedb1d7fea657f14814384652b2 (diff) | |
download | freebsd-ports-gnome-72e516563fbd409ee75918be382dea76646dd113.tar.gz freebsd-ports-gnome-72e516563fbd409ee75918be382dea76646dd113.tar.zst freebsd-ports-gnome-72e516563fbd409ee75918be382dea76646dd113.zip |
Remove vtk 4 which is EOLed upstream and missing in the previous
vtk cleanup (it has been disconnected from the build already)
Reported by: linimon
Diffstat (limited to 'math')
-rw-r--r-- | math/vtk/Makefile | 214 | ||||
-rw-r--r-- | math/vtk/distinfo | 2 | ||||
-rw-r--r-- | math/vtk/files/patch-vtkPNGReader.cxx | 20 | ||||
-rw-r--r-- | math/vtk/files/patch-vtkPNGWriter.cxx | 20 | ||||
-rw-r--r-- | math/vtk/pkg-descr | 15 | ||||
-rw-r--r-- | math/vtk/pkg-message | 4 | ||||
-rw-r--r-- | math/vtk/pkg-plist | 45 |
7 files changed, 0 insertions, 320 deletions
diff --git a/math/vtk/Makefile b/math/vtk/Makefile deleted file mode 100644 index c141588c7279..000000000000 --- a/math/vtk/Makefile +++ /dev/null @@ -1,214 +0,0 @@ -# Created by: Mykola Khotyaintsev <ko@irfu.se> -# $FreeBSD$ - -PORTNAME= vtk -PORTVERSION= 4.4 -PORTREVISION= 7 -CATEGORIES= math graphics -MASTER_SITES= http://ovt.irfu.se/vtk/files/ -DISTFILES?= VTK-${PORTVERSION}-LatestRelease.tar.gz - -MAINTAINER= ports@FreeBSD.org -COMMENT?= The Visualization Toolkit shared libs - -LIBVER= 1 -VTKSRCDIR= ${WRKDIR}/VTK -TESTINGDIR= ${EXAMPLESDIR}/Testing -VTKDATAROOT= ${EXAMPLESDIR}/VTKData -DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} -PLIST= ${.CURDIR}/pkg-plist -FILESDIR= ${.CURDIR}/files - -VTK_KITS= Common Filtering Graphics Hybrid IO Imaging Rendering Parallel Patented - -PLIST_SUB+= LIBVER=${LIBVER} PKGNAME=${PKGNAME} - -USE_TCL= 84 -USE_TK= 84 - -LICENSE= BSD - -NO_STAGE= yes -.include <bsd.port.pre.mk> - -.if defined(WRAP) || !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX}=="-headers" - -PATCH_WRKSRC= ${WRKDIR}/VTK -WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-build - -BUILD_DEPENDS+= ${CMAKE}:${PORTSDIR}/devel/cmake - -LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2 \ - jpeg.11:${PORTSDIR}/graphics/jpeg \ - png15:${PORTSDIR}/graphics/png \ - 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 -.endif - -USE_GMAKE= yes -USE_GL= yes -USE_LDCONFIG= yes -USE_XORG= xt - -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} ${PTHREAD_LIBS}" \ - -DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}"\ - -DCMAKE_C_COMPILER:STRING='${CC}' \ - -DCMAKE_CXX_COMPILER:STRING=${CXX} \ - -DCMAKE_C_FLAGS:STRING="${CFLAGS} ${PTHREAD_CFLAGS}" \ - -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} ${PTHREAD_CFLAGS}" \ - -DVTK_USE_RENDERING:BOOL=ON \ - -DVTK_USE_HYBRID:BOOL=ON \ - -DVTK_USE_PARALLEL:BOOL=ON \ - -DVTK_USE_PATENTED:BOOL=ON \ - -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \ - -DVTK_USE_SYSTEM_JPEG:BOOL=ON \ - -DVTK_USE_SYSTEM_PNG:BOOL=ON \ - -DVTK_USE_SYSTEM_TIFF:BOOL=ON \ - -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \ - -DVTK_DATA_ROOT:PATH=${VTKDATAROOT} - -.if defined(WITH_TESTING) -CMAKE_DEFS+= -DBUILD_TESTING:BOOL=ON -PLIST_SUB+= TESTING_ONLY="" -.else -CMAKE_DEFS+= -DBUILD_TESTING:BOOL=OFF -PLIST_SUB+= TESTING_ONLY="@comment " -.endif - -################################# vtk port start ############################################# - -.ifndef(PKGNAMESUFFIX) - -EXTRA_LIBS= DICOMParser freetype ftgl - -.if defined(WITH_TESTING) -BINARIES= ${VTK_KITS:C/Parallel//:C/Patented//:S/$/CxxTests/} -BINARIES+= TestCxxFeatures TestInstantiator TimeRenderer TimeRenderer2 ParallelIsoTest -BINARIES+= SocketClient SocketServer GenericCommunicator ThreadedCommunicator TestPStream -.endif - -.ifndef(WITH_TESTING) -pre-everything:: - @${ECHO_MSG} "---------------------- N O T E ------------------------" - @${ECHO_MSG} "" - @${ECHO_MSG} "If you want to build C++ Testing binaries press Ctrl-C now" - @${ECHO_MSG} "and execute \"make WITH_TESTING=yes\"" - @${ECHO_MSG} "" - @${ECHO_MSG} "-------------------------------------------------------------" -.endif - -post-patch: patch-common - -do-install: install-cnotice install-binaries install-libs - -.endif - -################################# vtk port end ############################################# - -pre-configure: - ${MKDIR} ${WRKSRC} - -do-configure: - cd ${WRKSRC} && ${CMAKE} ${VTKSRCDIR} ${CMAKE_DEFS} - -patch-common: - @${FIND} ${VTKSRCDIR} -name "*.cxx" | ${XARGS} ${REINPLACE_CMD} -e \ - 's|malloc.h|stdlib.h|g' - @${REINPLACE_CMD} -E 's|lib/vtk\)|lib\)|g' \ - ${VTKSRCDIR}/vtkGenerateVTKConfig.cmake -.if defined(WRAP) -# No need to build many libs, such as: vtkCommon,... Better link to those ones installed by vtk port. -# Patch (MAIN_KIT_LIB = [Common_LIB Filtering_LIB ...]: -# ${VTKSRCDIR}/CMakeLists.txt : -# -SUBDIRS(Wrapping Utilities) -# +SUBDIRS(Wrapping) -# -# ${VTKSRCDIR}/[Common Filtering IO ...]/CMakeLists.txt : -# -ADD_LIBRARY(vtk${KIT} ... -# +FIND_LIBRARY(MAIN_KIT_LIB NAMES vtk${KIT} PATHS ${PREFIX}/lib) -# -# -TARGET_LINK_LIBRARIES(vtk${KIT}Python vtk${KIT} ... -# +TARGET_LINK_LIBRARIES(vtk${KIT}Python ${MAIN_KIT_LIB} ... -# -# Sometimes TARGET_LINK_LIBRARIES(vtk${KIT}Python vtk${KIT} can be separated to two lines: -# TARGET_LINK_LIBRARIES(vtk${KIT}Python -# vtk${KIT} -# -^[spaces or tabs]vtk${KIT}[spaces or tabs]$ -# +[space]${MAIN_KIT_LIB} -# -# -TARGET_LINK_LIBRARIES(vtk${KIT} ${KIT_LIBS}) -# -# -INSTALL_TARGETS(/lib/vtk vtk${KIT}) -# -# ${VTKSRCDIR}/[Common Filtering IO ...]/Tests/CMakeLists.txt : -# -SUBDIRS(Cxx) -# - @${REINPLACE_CMD} -E 's|SUBDIRS\(Wrapping Utilities\)|SUBDIRS\(Wrapping\)|g' \ - ${VTKSRCDIR}/CMakeLists.txt - - @for dir in ${VTK_KITS} ; do \ - ${ECHO_MSG} "Patching ${WRKDIR}/${VTKSRCDIR}/$$dir/CMakeLists.txt ..." ; \ - ${REINPLACE_CMD} -E 's|ADD_LIBRARY *\(vtk\$$\{KIT\} .*$$|FIND_LIBRARY\('$$dir'_LIB NAMES vtk\$$\{KIT\} PATHS ${PREFIX}/lib\)|g ; s|TARGET_LINK_LIBRARIES *\(vtk\$$\{KIT\}${WRAP} vtk\$$\{KIT\}|TARGET_LINK_LIBRARIES\(vtk\$$\{KIT\}${WRAP} \$$\{'$$dir'_LIB\}|g ; s|^[ \t]*vtk\$$\{KIT\}[ \t]*$$| \$$\{'$$dir'_LIB\}|g ; s|TARGET_LINK_LIBRARIES *\(vtk\$$\{KIT\} .*$$||g ; s|INSTALL_TARGETS *\(.* vtk\$$\{KIT\}\)||g' \ - ${VTKSRCDIR}/$$dir/CMakeLists.txt ; \ - done - -.if defined(WITH_TESTING) - @for dir in ${VTK_KITS} ; do \ - ${ECHO_MSG} "Patching ${VTKSRCDIR}/$$dir/Testing/CMakeLists.txt ..." ; \ - ${REINPLACE_CMD} -E 's|SUBDIRS *\(Cxx\).*$$||g' \ - ${VTKSRCDIR}/$$dir/Testing/CMakeLists.txt ; \ - done -.endif -.endif #end of patch-common - -install-binaries: -.if defined(BINARIES) - @${ECHO_MSG} "Installing binaries to ${PREFIX}/bin :" -.for i in ${BINARIES} - @${ECHO_MSG} "Installing ${i} ..." - @${INSTALL_PROGRAM} ${WRKSRC}/bin/${i} ${PREFIX}/bin -.endfor -.endif - -install-libs: - @${ECHO_MSG} "Installing shared libraries to ${PREFIX}/lib ..." -.for i in ${VTK_KITS:S/$/${WRAP}/} ${EXTRA_LIBS} - @${ECHO_MSG} "Installing libvtk${i}.so ..." - @${INSTALL_PROGRAM} ${WRKSRC}/bin/libvtk${i}.so \ - ${PREFIX}/lib/libvtk${i}.so.${LIBVER} - @${LN} -sf ${PREFIX}/lib/libvtk${i}.so.${LIBVER} \ - ${PREFIX}/lib/libvtk${i}.so -.endfor - -.endif - -install-cnotice: - @${ECHO_MSG} "Installing copyright notice to ${DOCSDIR} ..." - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${VTKSRCDIR}/README.html ${DOCSDIR} - @${INSTALL_DATA} ${VTKSRCDIR}/vtkLogo.jpg ${DOCSDIR} - @${ECHO_MSG} -e "A list of the patented classes.\n\n" > ${WRKDIR}/README.patented-classes - @cd ${VTKSRCDIR} ; ${LS} Patented/*.h >> ${WRKDIR}/README.patented-classes - @${INSTALL_DATA} ${WRKDIR}/README.patented-classes ${DOCSDIR} - -print-pkg-message: - @if ${TEST} -f ${PKGMESSAGE} ; then \ - ${ECHO_MSG} -e "-- V T K - N O T E ----------------------------------------------------\n\n" ; \ - ${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|' ; \ - ${ECHO_MSG} -e "\n\n-----------------------------------------------------------------------" ; \ - fi - -post-install: print-pkg-message - -.ifndef(PKGNAMESUFFIX) -.include <bsd.port.post.mk> -.endif diff --git a/math/vtk/distinfo b/math/vtk/distinfo deleted file mode 100644 index f6a1d60a2fd1..000000000000 --- a/math/vtk/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (VTK-4.4-LatestRelease.tar.gz) = 4a6062ce65a0563aa7009220e1e58c3a8c1264e4d468376a20229db055d1a27b -SIZE (VTK-4.4-LatestRelease.tar.gz) = 6323955 diff --git a/math/vtk/files/patch-vtkPNGReader.cxx b/math/vtk/files/patch-vtkPNGReader.cxx deleted file mode 100644 index 4ad23950beb5..000000000000 --- a/math/vtk/files/patch-vtkPNGReader.cxx +++ /dev/null @@ -1,20 +0,0 @@ ---- IO/vtkPNGReader.cxx.orig 2012-05-06 13:44:56.000000000 +0200 -+++ IO/vtkPNGReader.cxx 2012-05-06 13:46:04.000000000 +0200 -@@ -101,7 +101,7 @@ - // minimum of a byte per pixel - if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - { -- png_set_gray_1_2_4_to_8(png_ptr); -+ png_set_expand_gray_1_2_4_to_8(png_ptr); - } - - // add alpha if any alpha found -@@ -200,7 +200,7 @@ - // minimum of a byte per pixel - if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - { -- png_set_gray_1_2_4_to_8(png_ptr); -+ png_set_expand_gray_1_2_4_to_8(png_ptr); - } - - // add alpha if any alpha found diff --git a/math/vtk/files/patch-vtkPNGWriter.cxx b/math/vtk/files/patch-vtkPNGWriter.cxx deleted file mode 100644 index 70dc6030ffeb..000000000000 --- a/math/vtk/files/patch-vtkPNGWriter.cxx +++ /dev/null @@ -1,20 +0,0 @@ ---- IO/vtkPNGWriter.cxx.orig 2003-12-30 21:51:31.000000000 +0100 -+++ IO/vtkPNGWriter.cxx 2012-05-05 09:43:24.000000000 +0200 -@@ -147,7 +147,7 @@ - void vtkPNGWriteErrorFunction(png_structp png_ptr, - png_const_charp vtkNotUsed(error_msg)) - { -- longjmp(png_ptr->jmpbuf, 1); -+ longjmp(png_jmpbuf(png_ptr), 1); - } - } - -@@ -223,7 +223,7 @@ - png_init_io(png_ptr, this->TempFP); - png_set_error_fn(png_ptr, png_ptr, - vtkPNGWriteErrorFunction, vtkPNGWriteWarningFunction); -- if (setjmp(png_ptr->jmpbuf)) -+ if (setjmp(png_jmpbuf(png_ptr))) - { - fclose(this->TempFP); - this->SetErrorCode(vtkErrorCode::OutOfDiskSpaceError); diff --git a/math/vtk/pkg-descr b/math/vtk/pkg-descr deleted file mode 100644 index 0d62b9340521..000000000000 --- a/math/vtk/pkg-descr +++ /dev/null @@ -1,15 +0,0 @@ - VTK - the Visualization Toolkit is an object oriented, high -level library that allows one to easily write programs in C++, Tcl, -Python and Java that do 3D visualization. - - VTK enables users to concentrate on their work by providing a -large number of excellent and feature packed high level functions that -do visualization. The library needs OpenGL to render the graphics and -for FreeBSD machines Mesa is necessary. - -The terms/copyright can be read in the docs dir/README.html. The patented -classes (few in number) are not to be used in commercial application -without a license from the patent/copyright holder (listed in the class -header). Patented classes are listed in README.patented-classes. - -WWW: http://www.vtk.org diff --git a/math/vtk/pkg-message b/math/vtk/pkg-message deleted file mode 100644 index d87a38d092e1..000000000000 --- a/math/vtk/pkg-message +++ /dev/null @@ -1,4 +0,0 @@ -The terms/copyright can be read in the docs dir/README.html. The patented -classes (few in number) are not to be used in commercial application -without a license from the patent/copyright holder (listed in the class -header). Patented classes are listed in README.patented-classes. diff --git a/math/vtk/pkg-plist b/math/vtk/pkg-plist deleted file mode 100644 index 0966f8547f5c..000000000000 --- a/math/vtk/pkg-plist +++ /dev/null @@ -1,45 +0,0 @@ -lib/libvtkCommon.so -lib/libvtkCommon.so.%%LIBVER%% -lib/libvtkDICOMParser.so -lib/libvtkDICOMParser.so.%%LIBVER%% -lib/libvtkFiltering.so -lib/libvtkFiltering.so.%%LIBVER%% -lib/libvtkGraphics.so -lib/libvtkGraphics.so.%%LIBVER%% -lib/libvtkHybrid.so -lib/libvtkHybrid.so.%%LIBVER%% -lib/libvtkIO.so -lib/libvtkIO.so.%%LIBVER%% -lib/libvtkImaging.so -lib/libvtkImaging.so.%%LIBVER%% -lib/libvtkParallel.so -lib/libvtkParallel.so.%%LIBVER%% -lib/libvtkPatented.so -lib/libvtkPatented.so.%%LIBVER%% -lib/libvtkRendering.so -lib/libvtkRendering.so.%%LIBVER%% -lib/libvtkfreetype.so -lib/libvtkfreetype.so.%%LIBVER%% -lib/libvtkftgl.so -lib/libvtkftgl.so.%%LIBVER%% -%%TESTING_ONLY%%bin/CommonCxxTests -%%TESTING_ONLY%%bin/FilteringCxxTests -%%TESTING_ONLY%%bin/GenericCommunicator -%%TESTING_ONLY%%bin/GraphicsCxxTests -%%TESTING_ONLY%%bin/HybridCxxTests -%%TESTING_ONLY%%bin/IOCxxTests -%%TESTING_ONLY%%bin/ImagingCxxTests -%%TESTING_ONLY%%bin/ParallelIsoTest -%%TESTING_ONLY%%bin/RenderingCxxTests -%%TESTING_ONLY%%bin/SocketClient -%%TESTING_ONLY%%bin/SocketServer -%%TESTING_ONLY%%bin/TestCxxFeatures -%%TESTING_ONLY%%bin/TestInstantiator -%%TESTING_ONLY%%bin/TestPStream -%%TESTING_ONLY%%bin/ThreadedCommunicator -%%TESTING_ONLY%%bin/TimeRenderer -%%TESTING_ONLY%%bin/TimeRenderer2 -%%DOCSDIR%%/README.html -%%DOCSDIR%%/README.patented-classes -%%DOCSDIR%%/vtkLogo.jpg -@dirrmtry %%DOCSDIR%% |