Fix three syntactic testsuite failures
[maxima.git] / crosscompile-windows / tcltk / CMakeLists.txt
blobf4649d26ebe5d0ab43c323adeb7a50b26174da3b
1 # CMake file for crosscompiling Maxima/wxMaxima for Windows
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (C) by Wolfgang Dautermann
4 # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
5 # This is free software: you are free to change and redistribute it.
6 # There is NO WARRANTY, to the extent permitted by law.
8 # If you want to use a updated version of a program,
9 # update the version number and the checksum.
10 # If no further patches are needed, you should get a
11 # updated setup-file automatically.
13 set(TCLVERSION "9.0.1")
14 set(TKVERSION  "9.0.1")
16 set(TCL_MD5 "6bc27eaf8e152c9f0c7b489b73b89dda")
17 set(TK_MD5  "66bff2d2a28f14949f4d605ac5dd2ae5")
19 set(TCL_URL "https://prdownloads.sourceforge.net/tcl/tcl${TCLVERSION}-src.tar.gz")
20 set(TK_URL  "https://prdownloads.sourceforge.net/tcl/tk${TKVERSION}-src.tar.gz")
23 # build tcl/tk (required for xmaxima and the Lisp selection tool)
24 externalproject_add(tcl
25   URL "${TCL_URL}"
26   DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
27   URL_MD5 ${TCL_MD5}
28   CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/tcltk/tcl-prefix/src/tcl/win/configure --build=${BUILDHOST} --host=${HOST} --disable-shared --disable-zipfs --prefix=${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}
29   BUILD_COMMAND $(MAKE)
30         COMMAND $(MAKE) install
32 install(DIRECTORY ${CMAKE_BINARY_DIR}/tcltk/tcl-prefix/src/tcl-build/${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}/ DESTINATION . COMPONENT TclTk)
34 externalproject_add(tk
35   URL "${TK_URL}"
36   DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
37   URL_MD5 ${TK_MD5}
38   DEPENDS tcl
39   CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/tcltk/tk-prefix/src/tk/win/configure --build=${BUILDHOST} --host=${HOST} --disable-shared --disable-zipfs --with-tcl=${CMAKE_BINARY_DIR}/tcltk/tcl-prefix/src/tcl-build/${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}/lib --prefix=${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}
40   BUILD_COMMAND $(MAKE)
41         COMMAND $(MAKE) install
43 install(DIRECTORY ${CMAKE_BINARY_DIR}/tcltk/tk-prefix/src/tk-build/${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}/ DESTINATION . COMPONENT TclTk)