annotate src/cmake.mk @ 4405:1a92716b1682

cmake: update to 3.8.2 * src/cmake.mk: update version, checksum * src/build_cmake.mk: update version, checksum
author John D
date Tue, 27 Jun 2017 08:42:57 -0400
parents b16a4e40bcf8
children 979f5b397e51
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 :=
4405
1a92716b1682 cmake: update to 3.8.2
John D
parents: 4371
diff changeset
6 $(PKG)_VERSION := 3.8.2
1a92716b1682 cmake: update to 3.8.2
John D
parents: 4371
diff changeset
7 $(PKG)_CHECKSUM := c38aad7406d6cbd99a6c71922c6c3406f745c583
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
4405
1a92716b1682 cmake: update to 3.8.2
John D
parents: 4371
diff changeset
10 $(PKG)_URL := http://www.cmake.org/files/v3.8/$($(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
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
25 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
26 echo $($(PKG)_VERSION)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
27 endef
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
28
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
29 define $(PKG)_BUILD
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
30 mkdir '$(1).build'
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
31 cd '$(1).build' && cmake \
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
32 $($(PKG)_CMAKE_OPTS) \
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
33 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
34 ../$($(PKG)_SUBDIR)
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
35 $(MAKE) -C '$(1).build' -j '$(JOBS)'
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
36 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)'
02b6df72166a cmake: add cross built cmake package
John D
parents:
diff changeset
37 endef