Windows installer: Update SBCL.
[maxima/cygwin.git] / crosscompile-windows / sbcl / CMakeLists.txt
blobb538675ea7e3e1529a782be55facff66f40bea16
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 if(BUILD_64BIT)
14     set(SBCLVERSION "2.2.6")
15     set(SBCL_MD5 "9c794cab8fee5c11c1cdf8cff46fe432")
16     set(SBCL_INSTALLERNAME "sbcl-${SBCLVERSION}-x86-64-windows-binary.msi")
17 else()
18     set(SBCLVERSION "2.2.6")
19     set(SBCL_MD5 "a6675b6ebff8bf3e18eaa2c6bb7514e5")
20     set(SBCL_INSTALLERNAME "sbcl-${SBCLVERSION}-x86-windows-binary.msi")
21 endif()
23 set(SBCL_URL "http://prdownloads.sourceforge.net/sbcl/${SBCL_INSTALLERNAME}")
25 externalproject_add(sbcl
26   URL "${SBCL_URL}"
27   DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
28   URL_MD5 ${SBCL_MD5}
29   DOWNLOAD_NO_EXTRACT 1
30   CONFIGURE_COMMAND ""
31   BUILD_COMMAND cd ${CMAKE_BINARY_DIR}/sbcl && ${CMAKE_SOURCE_DIR}/sbcl.sh
32   INSTALL_COMMAND ""
35 ExternalProject_Add_Step(sbcl extract
36   COMMENT "Performing extraction step for 'SBCL'"
37   COMMAND mkdir -p ${CMAKE_BINARY_DIR}/sbcl && cd ${CMAKE_BINARY_DIR}/sbcl && ${SEVENZIP_EXE} x -y ${CMAKE_SOURCE_DIR}/downloads/${SBCL_INSTALLERNAME}
38   DEPENDEES download
39   DEPENDERS patch
42 install(FILES ${CMAKE_BINARY_DIR}/sbcl/sbcl.exe ${CMAKE_BINARY_DIR}/sbcl/sbcl.core DESTINATION bin COMPONENT SBCL)
43 install(DIRECTORY ${CMAKE_BINARY_DIR}/sbcl/contrib DESTINATION bin COMPONENT SBCL)