Mercurial > mxe-octave
annotate src/cmake.mk @ 5544:e2582a427c2a
* src/proj.mk: update to v7.1.1
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 22 Sep 2020 09:04:50 -0400 |
parents | d862fd40cc42 |
children | f842bc347ebd |
rev | line source |
---|---|
4289 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := cmake | |
5 $(PKG)_IGNORE := | |
5512
96dfe2730a27
curl update to 7.72.0, cmake 3.18.2
John Donoghue <john.donoghue@ieee.org>
parents:
5506
diff
changeset
|
6 $(PKG)_VERSION := 3.18.2 |
96dfe2730a27
curl update to 7.72.0, cmake 3.18.2
John Donoghue <john.donoghue@ieee.org>
parents:
5506
diff
changeset
|
7 $(PKG)_CHECKSUM := 23092c6a5ae9ecde368abbfda7bae0d01edb7387 |
4289 | 8 $(PKG)_SUBDIR := cmake-$($(PKG)_VERSION) |
9 $(PKG)_FILE := cmake-$($(PKG)_VERSION).tar.gz | |
4547 | 10 $(PKG)_URL := http://www.cmake.org/files/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5512
diff
changeset
|
11 $(PKG)_DEPS := |
4289 | 12 |
13 $(PKG)_CMAKE_OPTS := | |
14 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) | |
15 ifeq ($(MXE_SYSTEM),mingw) | |
16 $(PKG)_CMAKE_OPTS := -G "MSYS Makefiles" | |
17 endif | |
18 else | |
19 ifeq ($(MXE_SYSTEM),mingw) | |
20 $(PKG)_CMAKE_OPTS += -DKWSYS_LFS_WORKS=TRUE | |
21 endif | |
22 endif | |
23 | |
24 define $(PKG)_UPDATE | |
4538 | 25 $(WGET) -q -O- 'https://www.cmake.org/cmake/resources/software.html' | \ |
26 $(SED) -n 's,.*cmake-\([0-9.]*\)\.tar.*,\1,p' | \ | |
27 $(SORT) -V | \ | |
28 tail -1 | |
4289 | 29 endef |
30 | |
31 define $(PKG)_BUILD | |
32 mkdir '$(1).build' | |
33 cd '$(1).build' && cmake \ | |
34 $($(PKG)_CMAKE_OPTS) \ | |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5512
diff
changeset
|
35 $(CMAKE_CCACHE_FLAGS) \ |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5512
diff
changeset
|
36 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
4289 | 37 ../$($(PKG)_SUBDIR) |
38 $(MAKE) -C '$(1).build' -j '$(JOBS)' | |
39 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' | |
40 endef |