FreeBSD Bugzilla – Attachment 234958 Details for
Bug 264917
devel/gdcm: Use latest VTK-9 instead of ancient VTK-6; Add USES=python
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
gdcm.patch (text/plain), 4.08 KB, created by
Yuri Victorovich
on 2022-06-26 21:19:27 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2022-06-26 21:19:27 UTC
Size:
4.08 KB
patch
obsolete
>diff --git a/devel/gdcm/Makefile b/devel/gdcm/Makefile >index ed25fcdf768d..fdec55e14900 100644 >--- a/devel/gdcm/Makefile >+++ b/devel/gdcm/Makefile >@@ -13,17 +13,20 @@ LICENSE= BSD3CLAUSE > LIB_DEPENDS= libopenjp2.so:graphics/openjpeg \ > libexpat.so:textproc/expat2 > >-USES= alias cmake compiler:c++11-lang pkgconfig tar:bzip2 ssl >+USES= alias cmake compiler:c++11-lang pkgconfig python:build tar:bzip2 ssl >+USE_LDCONFIG= yes > >-OPTIONS_DEFINE= VTK6 >+OPTIONS_DEFINE= VTK > OPTIONS_SUB= yes > >-VTK6_DESC= Build VTK 6 integration classes >-VTK6_LIB_DEPENDS= libvtkCommonCore-${VTK6_VERSION}.so:math/vtk6 >-VTK6_CMAKE_ON= -DGDCM_USE_VTK:BOOL=ON \ >- -DVTK_DIR:PATH=${LOCALBASE}/lib/vtk-${VTK6_VERSION} >-VTK6_USES= gl >-VTK6_USE= GL=glu >+VTK_DESC= Build VTK integration classes >+VTK_CXXFLAGS= -I${LOCALBASE}/include/vtk-${VTK_VERSION} >+VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VERSION}.so:math/vtk${VTK_VERSION:R} >+VTK_CMAKE_ON= -DGDCM_USE_VTK:BOOL=ON \ >+ -DVTK_DIR:PATH=${LOCALBASE}/lib/vtk-${VTK_VERSION} >+VTK_USES= gl >+VTK_USE= GL=glu >+VTK_BROKEN= Fails to compile with VTK-9.1, see https://sourceforge.net/p/gdcm/bugs/537/ > > # Change this when updating the port > GDCM_MAJOR= 3 >@@ -31,9 +34,8 @@ GDCM_MINOR= 0 > GDCM_PATCH= 14 > > # Change this whenever VTK is updated >-VTK6_VERSION= 6.2 >+VTK_VERSION= 9.1 > >-USE_LDCONFIG= yes > CFLAGS+= -I${LOCALBASE}/include > CMAKE_ARGS= -DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \ > -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \ >@@ -44,11 +46,13 @@ CMAKE_ARGS= -DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \ > -DGDCM_BUILD_EXAMPLES:BOOL=OFF \ > -DGDCM_INSTALL_DATA_DIR:PATH=${DATADIR_REL} \ > -DGDCM_DOCUMENTATION:BOOL=OFF \ >- -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=OFF >+ -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=OFF \ >+ -DPython3_EXECUTABLE=${PYTHON_CMD} \ >+ -DGDCM_DEFAULT_PYTHON_VERSION=${PYTHON_VER} > > .include <bsd.port.options.mk> > >-.if ${PORT_OPTIONS:MVTK6} >+.if ${PORT_OPTIONS:MVTK} > DESKTOP_ENTRIES="Gdcmviewer" "Simple DICOM Viewer" "" "gdcmviewer" "" "" > PLIST_SUB+= VTK="" > .else >diff --git a/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt b/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt >index 1e9515e30ab6..922d601e6df6 100644 >--- a/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt >+++ b/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt >@@ -1,3 +1,5 @@ >+- Choose exact Python version, see https://sourceforge.net/p/gdcm/bugs/538/ >+ > --- Wrapping/Python/CMakeLists.txt.orig 2022-06-26 20:16:42 UTC > +++ Wrapping/Python/CMakeLists.txt > @@ -48,8 +48,8 @@ include_directories( >diff --git a/devel/gdcm/files/patch-Utilities_VTK_vtkImageMapToWindowLevelColors2.cxx b/devel/gdcm/files/patch-Utilities_VTK_vtkImageMapToWindowLevelColors2.cxx >new file mode 100644 >index 000000000000..74ffcd464f6a >--- /dev/null >+++ b/devel/gdcm/files/patch-Utilities_VTK_vtkImageMapToWindowLevelColors2.cxx >@@ -0,0 +1,13 @@ >+- workaround for https://sourceforge.net/p/gdcm/bugs/536/ >+ >+--- Utilities/VTK/vtkImageMapToWindowLevelColors2.cxx.orig 2022-06-26 20:39:45 UTC >++++ Utilities/VTK/vtkImageMapToWindowLevelColors2.cxx >+@@ -37,6 +37,8 @@ >+ #include "vtkScalarsToColors.h" >+ #include "vtkPointData.h" >+ >++#include <math.h> >++ >+ //vtkCxxRevisionMacro(vtkImageMapToWindowLevelColors2, "$Revision: 1.3 $") >+ vtkStandardNewMacro(vtkImageMapToWindowLevelColors2) >+ >diff --git a/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt b/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt >new file mode 100644 >index 000000000000..1e9515e30ab6 >--- /dev/null >+++ b/devel/gdcm/files/patch-Wrapping_Python_CMakeLists.txt >@@ -0,0 +1,13 @@ >+--- Wrapping/Python/CMakeLists.txt.orig 2022-06-26 20:16:42 UTC >++++ Wrapping/Python/CMakeLists.txt >+@@ -48,8 +48,8 @@ include_directories( >+ ${CMAKE_CURRENT_SOURCE_DIR} >+ ) >+ >+-find_package(PythonInterp ${GDCM_DEFAULT_PYTHON_VERSION} REQUIRED) >+-find_package(PythonLibs ${GDCM_DEFAULT_PYTHON_VERSION} REQUIRED) >++find_package(PythonInterp ${GDCM_DEFAULT_PYTHON_VERSION} EXACT REQUIRED) >++find_package(PythonLibs ${GDCM_DEFAULT_PYTHON_VERSION} EXACT REQUIRED) >+ #Â TODO Need to check consistency python interp and python libs... >+ mark_as_advanced(PYTHON_LIBRARY PYTHON_INCLUDE_PATH) >+ # Lamest excuse ever:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264917
:
234958
|
234959