SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
60
devel/cmake/patches/patch-Modules_FindWish_cmake
Normal file
60
devel/cmake/patches/patch-Modules_FindWish_cmake
Normal file
|
@ -0,0 +1,60 @@
|
|||
Index: Modules/FindWish.cmake
|
||||
--- Modules/FindWish.cmake.orig
|
||||
+++ Modules/FindWish.cmake
|
||||
@@ -20,14 +20,21 @@ library is. This code sets the following variables:
|
||||
if UNIX is defined, then it will look for the cygwin version first
|
||||
#]=======================================================================]
|
||||
|
||||
+set(MODTCL_VERSION $ENV{MODTCL_VERSION})
|
||||
+set(MODTK_VERSION $ENV{MODTK_VERSION})
|
||||
+
|
||||
if(UNIX)
|
||||
find_program(TK_WISH cygwish80 )
|
||||
endif()
|
||||
|
||||
get_filename_component(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
|
||||
get_filename_component(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH)
|
||||
-string(REGEX REPLACE
|
||||
- "^.*tclsh([0-9]\\.*[0-9]).*$" "\\1" TCL_TCLSH_VERSION "${TCL_TCLSH}")
|
||||
+if(MODTCL_VERSION)
|
||||
+ set(TCL_TCLSH_VERSION "${MODTCL_VERSION}")
|
||||
+else(MODTCL_VERSION)
|
||||
+ string(REGEX REPLACE
|
||||
+ "^.*tclsh([0-9]\\.*[0-9]).*$" "\\1" TCL_TCLSH_VERSION "${TCL_TCLSH}")
|
||||
+endif(MODTCL_VERSION)
|
||||
|
||||
get_filename_component(TCL_INCLUDE_PATH_PARENT "${TCL_INCLUDE_PATH}" PATH)
|
||||
get_filename_component(TK_INCLUDE_PATH_PARENT "${TK_INCLUDE_PATH}" PATH)
|
||||
@@ -66,16 +73,22 @@ if(WIN32)
|
||||
)
|
||||
endif()
|
||||
|
||||
-set(TK_WISH_NAMES
|
||||
- wish
|
||||
- wish${TCL_LIBRARY_VERSION} wish${TK_LIBRARY_VERSION} wish${TCL_TCLSH_VERSION}
|
||||
- wish86 wish8.6
|
||||
- wish85 wish8.5
|
||||
- wish84 wish8.4
|
||||
- wish83 wish8.3
|
||||
- wish82 wish8.2
|
||||
- wish80 wish8.0
|
||||
- )
|
||||
+if(MODTK_VERSION)
|
||||
+ set(TK_WISH_NAMES
|
||||
+ wish${MODTK_VERSION}
|
||||
+ )
|
||||
+else(MODTK_VERSION)
|
||||
+ set(TK_WISH_NAMES
|
||||
+ wish
|
||||
+ wish${TCL_LIBRARY_VERSION} wish${TK_LIBRARY_VERSION} wish${TCL_TCLSH_VERSION}
|
||||
+ wish86 wish8.6
|
||||
+ wish85 wish8.5
|
||||
+ wish84 wish8.4
|
||||
+ wish83 wish8.3
|
||||
+ wish82 wish8.2
|
||||
+ wish80 wish8.0
|
||||
+ )
|
||||
+endif(MODTK_VERSION)
|
||||
|
||||
find_program(TK_WISH
|
||||
NAMES ${TK_WISH_NAMES}
|
Loading…
Add table
Add a link
Reference in a new issue