Add missing ===end=== line in zheev example
[maxima.git] / crosscompile-windows / tcltk / CMakeLists.txt
blob888bf59d7e03d2732137d737288b917c2b2ddaff
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 "8.6.15")
14 set(TKVERSION  "8.6.15")
16 set(TCL_MD5 "c13a4d5425b5ae335258342b38ba34c2")
17 set(TK_MD5  "6d64b6eb021062f378017d403fedcbe6")
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")
22 if(BUILD_64BIT)
23     set(CONFIGURE64BIT "--enable-64bit")
24 else()
25     set(CONFIGURE64BIT "")
26 endif()
29 # build tcl/tk (required for xmaxima and the Lisp selection tool)
30 externalproject_add(tcl
31   URL "${TCL_URL}"
32   DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
33   URL_MD5 ${TCL_MD5}
34   CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/tcltk/tcl-prefix/src/tcl/win/configure --build=${BUILDHOST} --host=${HOST} ${CONFIGURE64BIT} --enable-shared=no --prefix=${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}
35   BUILD_COMMAND $(MAKE)
36         COMMAND $(MAKE) install
38 install(DIRECTORY ${CMAKE_BINARY_DIR}/tcltk/tcl-prefix/src/tcl-build/${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}/ DESTINATION . COMPONENT TclTk)
40 externalproject_add(tk
41   URL "${TK_URL}"
42   DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
43   URL_MD5 ${TK_MD5}
44   DEPENDS tcl
45   CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/tcltk/tk-prefix/src/tk/win/configure --build=${BUILDHOST} --host=${HOST} ${CONFIGURE64BIT} --enable-shared=no --with-tcl=${CMAKE_BINARY_DIR}/tcltk/tcl-prefix/src/tcl-build/${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}/lib --prefix=${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}
46   BUILD_COMMAND $(MAKE)
47         COMMAND $(MAKE) install
49 install(DIRECTORY ${CMAKE_BINARY_DIR}/tcltk/tk-prefix/src/tk-build/${WINDOWS_DRIVELETTER}:/maxima-${MAXIMAVERSION}/ DESTINATION . COMPONENT TclTk)