summaryrefslogtreecommitdiff
path: root/math/plplot/files/patch-cmake_modules_tcl-related.cmake
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2009-12-29 13:43:18 +0000
committerThierry Thomas <thierry@FreeBSD.org>2009-12-29 13:43:18 +0000
commit0242a387701d15bf1a13217dcfa3867f669d9fbc (patch)
tree11e0e80e6f4e3b7602c149e264655b9eb6ade264 /math/plplot/files/patch-cmake_modules_tcl-related.cmake
parentpython-nexus is a generic nexus (phylogenetics) file format(.nex, .trees) (diff)
Upgrade to 5.9.5, required by GDL.
Notes: - support of Gnome2 and VGAlib are now deprecated; - support of Qt added; - plrender is also deprecated, but we force it to build. Many more options could be enabled, if someone needs them.
Notes
Notes: svn path=/head/; revision=246860
Diffstat (limited to 'math/plplot/files/patch-cmake_modules_tcl-related.cmake')
-rw-r--r--math/plplot/files/patch-cmake_modules_tcl-related.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/math/plplot/files/patch-cmake_modules_tcl-related.cmake b/math/plplot/files/patch-cmake_modules_tcl-related.cmake
new file mode 100644
index 000000000000..52a0b4d3c390
--- /dev/null
+++ b/math/plplot/files/patch-cmake_modules_tcl-related.cmake
@@ -0,0 +1,32 @@
+--- cmake/modules/tcl-related.cmake.orig 2009-09-06 21:04:43.000000000 +0200
++++ cmake/modules/tcl-related.cmake 2009-12-25 17:44:43.000000000 +0100
+@@ -98,11 +98,13 @@
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/modules
+ OUTPUT_VARIABLE itcl_library_versions)
+ message(STATUS "Looking for itcl.h")
+- find_path(ITCL_INCLUDE_PATH itcl.h ${TCL_INCLUDE_PATH})
++ find_path(ITCL_INCLUDE_PATH itcl.h ${TCL_INCLUDE_PATH}/../itcl%%ITCL_VER%%)
+ if(ITCL_INCLUDE_PATH)
+ message(STATUS "Looking for itcl.h - found")
+ message(STATUS "Looking for itcl library")
+ get_filename_component(TCL_LIBRARY_PATH ${TCL_LIBRARY} PATH)
++ find_library(ITCL_LIBRARY itcl PATHS ${TCL_LIBRARY_PATH}
++ PATH_SUFFIXES itcl)
+ set(itcl_library_versions 3.4 3.3 3.2 3.1 3.0 2.1 2.0)
+ foreach(version ${itcl_library_versions})
+ find_library(ITCL_LIBRARY itcl${version} PATHS ${TCL_LIBRARY_PATH}
+@@ -158,11 +160,12 @@
+ endif(ENABLE_tk)
+ if(ENABLE_itk)
+ message(STATUS "Looking for itk.h")
+- find_path(ITK_INCLUDE_PATH itk.h ${TK_INCLUDE_PATH})
++ find_path(ITK_INCLUDE_PATH itk.h ${TCL_INCLUDE_PATH}/../itk%%ITCL_VER%%)
+ if(ITK_INCLUDE_PATH)
+ message(STATUS "Looking for itk.h - found")
+ message(STATUS "Looking for itk library")
+- set(itk_library_versions 3.4 3.3 3.2 3.1 3.0 2.1 2.0)
++ find_library(ITK_LIBRARY itk PATH_SUFFIXES itk)
++ set(itk_library_versions "" 3.4 3.3 3.2 3.1 3.0 2.1 2.0)
+ foreach(version ${itk_library_versions})
+ find_library(ITK_LIBRARY itk${version}
+ PATH_SUFFIXES itk${version})