Opened 14 years ago
Last modified 14 years ago
#26554 closed defect
vtk5: add cmake, tcl and tk dependencies — at Initial Version
Reported by: | tonchev1@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | vtk5 |
Description
vtk5 recipe doesn't build if cmake is not installed. Further, when building the default variant (which has +tcltk), build fails if tcl and tk are not installed.
I guess they should be added to the Portfile depends_build or depends_lib. The following patch fixed the build for me (I'm a MacPorts newbie and I'm not sure it's 100% correct though).
Index: graphics/vtk5/Portfile =================================================================== --- graphics/vtk5/Portfile +++ graphics/vtk5/Portfile @@ -26,7 +26,7 @@
sha1 355209c485304f1b0feefcda3585d45217ffd230 \ rmd160 b7abf3b9bb14a3db81608c7aa2721935ae653295
-depends_build port:readline +depends_build port:readline bin:cmake:cmake
distname VTK
use_parallel_build yes
@@ -91,6 +91,7 @@
}
variant tcltk conflicts carbon description {Build with Tcl wrappers and Tk support} {
+ depends_lib-append port:tcl port:tk
configure.args-delete \
-DVTK_USE_TK:BOOL=OFF \ -DVTK_WRAP_TCL:BOOL=OFF
add missing dependencies (cmake, tcl, tk)