Mercurial > mxe-octave
annotate src/cmake.mk @ 6243:30ba23fb640d
* src/build-cmake.mk, src/cmake.mk: update to v3.23.2
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 27 May 2022 14:24:40 -0400 |
parents | 46d87e71bff7 |
children | 2e45c970becf |
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 := | |
6243
30ba23fb640d
* src/build-cmake.mk, src/cmake.mk: update to v3.23.2
John Donoghue <john.donoghue@ieee.org>
parents:
6172
diff
changeset
|
6 $(PKG)_VERSION := 3.23.2 |
30ba23fb640d
* src/build-cmake.mk, src/cmake.mk: update to v3.23.2
John Donoghue <john.donoghue@ieee.org>
parents:
6172
diff
changeset
|
7 $(PKG)_CHECKSUM := 766ac6c7f94529ae097e3c0fa15a38abad58cf18 |
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) |
6111
497afa9abf22
* src/cmake.mk: force system detection of curl for cross compile (Bug #62115)
John Donoghue <john.donoghue@ieee.org>
parents:
6020
diff
changeset
|
11 $(PKG)_DEPS := bzip2 curl expat xz zlib |
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) | |
6111
497afa9abf22
* src/cmake.mk: force system detection of curl for cross compile (Bug #62115)
John Donoghue <john.donoghue@ieee.org>
parents:
6020
diff
changeset
|
20 $(PKG)_CMAKE_OPTS += -DKWSYS_LFS_WORKS=TRUE \ |
497afa9abf22
* src/cmake.mk: force system detection of curl for cross compile (Bug #62115)
John Donoghue <john.donoghue@ieee.org>
parents:
6020
diff
changeset
|
21 -DCMAKE_USE_SYSTEM_CURL=ON \ |
497afa9abf22
* src/cmake.mk: force system detection of curl for cross compile (Bug #62115)
John Donoghue <john.donoghue@ieee.org>
parents:
6020
diff
changeset
|
22 -DZLIB_WINAPI_EXITCODE=0 \ |
497afa9abf22
* src/cmake.mk: force system detection of curl for cross compile (Bug #62115)
John Donoghue <john.donoghue@ieee.org>
parents:
6020
diff
changeset
|
23 -DZLIB_WINAPI_EXITCODE__TRYRUN_OUTPUT='' |
4289 | 24 endif |
25 endif | |
26 | |
27 define $(PKG)_UPDATE | |
4538 | 28 $(WGET) -q -O- 'https://www.cmake.org/cmake/resources/software.html' | \ |
29 $(SED) -n 's,.*cmake-\([0-9.]*\)\.tar.*,\1,p' | \ | |
30 $(SORT) -V | \ | |
31 tail -1 | |
4289 | 32 endef |
33 | |
34 define $(PKG)_BUILD | |
35 mkdir '$(1).build' | |
36 cd '$(1).build' && cmake \ | |
37 $($(PKG)_CMAKE_OPTS) \ | |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5512
diff
changeset
|
38 $(CMAKE_CCACHE_FLAGS) \ |
5571
b19fb3ed330c
use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents:
5561
diff
changeset
|
39 $(CMAKE_BUILD_SHARED_OR_STATIC) \ |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5512
diff
changeset
|
40 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
4289 | 41 ../$($(PKG)_SUBDIR) |
42 $(MAKE) -C '$(1).build' -j '$(JOBS)' | |
43 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' | |
44 endef |