Highlights: - Stop building cmake itself with ninja. Upstream has decided not to support this anymore. I see no benefit and it's getting harder and harder to take care of. - Use cmake's internel libuv, json-cpp etc. to build the bootstrap cmake (only bootstrap). - Fix SONAME in cmake ports Notable port changes: - Fix COMPILER, it's not possible to build the old and the new cmake version with base-gcc, isn't. - It doesn't make any sense to keep the m88k XXX tags. CMake don't build under m88k. - Tech cmake to detect/provide system JDK11, lua and new ruby version (of course upcoming ruby 2.7) - I took some pre-configure commands from the FreeBSDs port. - Add --docdir to avoid warnings and sort CONFIGURE_ARGS Bulk build by naddy@ on amd64. Thanks a lot! Successful test by Martin Reindl on macppc and arm64. Thanks!
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
$OpenBSD: patch-Modules_FindWish_cmake,v 1.6 2019/08/21 05:47:40 rsadowski Exp $
|
|
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}
|