Files
bpfire/lfs/cmake
Adolf Belka 3a7a955ba2 cmake: Update to 3.20.2
- Update from 3.20.0 to 3.20.2
- Update rootfile
- Changelog
   3.20.1
     -The FindIntl module in CMake 3.20.0 added checks
      Intl_HAVE_GETTEXT_BUILTIN, Intl_HAVE_DCGETTEXT_BUILTIN, and
      Intl_IS_BUILTIN, but they were not implemented correctly. These have
      been removed and replaced with a single Intl_IS_BUILT_IN check, whose
      name is consistent with the FindIconv module.
     -The -rpath linker flag is now specified as supported on all Apple
      platforms, not just macOS. The install_name_dir used for iOS, tvOS
      and watchOS should now default to @rpath instead of using a full
      absolute path and failing at runtime when the library or framework
      is embedded in an application bundle (see XCODE_EMBED_<type>).
   3.20.2
     -The Intel Classic 2021 compiler version numbers are now detected
      correctly as having major version 2021. CMake 3.20.1 and below were
      not aware of a change to the identification macro version scheme
      made by Intel starting in version 2021, and detected the version
      as 20.2.
     -The Intel oneAPI Fortran compiler is now identified as IntelLLVM.
      The oneAPI 2021.1 Fortran compiler is missing an identification
      macro, so CMake 3.20.1 and below identified it as Intel. CMake now
      has a special case to recognize oneAPI 2021.1 Fortran as IntelLLVM.
      The oneAPI 2021.2 Fortran compiler defines the proper identification
      macro and so is identified as IntelLLVM by all CMake 3.20 versions.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-06 09:54:21 +00:00

89 lines
3.4 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 3.20.2
THISAPP = cmake-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 512)))
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_MD5 = cd0e7735f1e51f30ee3b0844390a464a
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
md5 : $(subst %,%_MD5,$(objects))
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_MD5,$(objects)) :
@$(MD5)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && sed -i '/CMAKE_USE_LIBUV 1/s/1/0/' CMakeLists.txt
cd $(DIR_APP) && sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
cd $(DIR_APP) && ./bootstrap \
--prefix=/usr \
--system-libs \
--mandir=/share/man \
--no-system-jsoncpp \
--no-system-librhash \
--no-system-libuv \
--docdir=/share/doc/cmake
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)