annotate src/cmake.mk @ 4547:370d4b76f132

cmake: update to v3.10.0 * src/build-cmake.mk, src/cmake.mk: update version, checksum and url
author John D
date Mon, 27 Nov 2017 08:48:25 -0500
parents 979f5b397e51
children 8d9def359371
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4289
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
1 # This file is part of MXE.
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
2 # See index.html for further information.
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
3
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
4 PKG := cmake
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
5 $(PKG)_IGNORE :=
4547
370d4b76f132 cmake: update to v3.10.0
John D
parents: 4538
diff changeset
6 $(PKG)_VERSION := 3.10.0
370d4b76f132 cmake: update to v3.10.0
John D
parents: 4538
diff changeset
7 $(PKG)_CHECKSUM := b914ab1de1ebadf9f84a9afe89167ea22846b26e
4289
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
8 $(PKG)_SUBDIR := cmake-$($(PKG)_VERSION)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
9 $(PKG)_FILE := cmake-$($(PKG)_VERSION).tar.gz
4547
370d4b76f132 cmake: update to v3.10.0
John D
parents: 4538
diff changeset
10 $(PKG)_URL := http://www.cmake.org/files/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
4289
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
11 $(PKG)_DEPS :=
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
12
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
13 $(PKG)_CMAKE_OPTS :=
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
14 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
15 ifeq ($(MXE_SYSTEM),mingw)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
16 $(PKG)_CMAKE_OPTS := -G "MSYS Makefiles"
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
17 endif
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
18 else
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
19 ifeq ($(MXE_SYSTEM),mingw)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
20 $(PKG)_CMAKE_OPTS += -DKWSYS_LFS_WORKS=TRUE
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
21 endif
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
22 endif
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
23
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
24 define $(PKG)_UPDATE
4538
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4405
diff changeset
25 $(WGET) -q -O- 'https://www.cmake.org/cmake/resources/software.html' | \
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4405
diff changeset
26 $(SED) -n 's,.*cmake-\([0-9.]*\)\.tar.*,\1,p' | \
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4405
diff changeset
27 $(SORT) -V | \
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4405
diff changeset
28 tail -1
4289
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
29 endef
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
30
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
31 define $(PKG)_BUILD
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
32 mkdir '$(1).build'
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
33 cd '$(1).build' && cmake \
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
34 $($(PKG)_CMAKE_OPTS) \
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
35 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
36 ../$($(PKG)_SUBDIR)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
37 $(MAKE) -C '$(1).build' -j '$(JOBS)'
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
38 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)'
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
39 endef