Mercurial > mxe-octave
annotate src/cmake.mk @ 5893:53a6c7df43f8
Mesa 3D: Update to version 21.1.8.
* src/mesa.mk: Update version and checksum.
* src/mesa-2-uninitialized.patch: Remove file.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 Sep 2021 22:37:45 +0200 |
parents | 43d8099f411c |
children | ff6218f754ff |
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 := | |
5874
43d8099f411c
* src/build-cmake.mk, src/cmake.mk: update to v3.21.2
John Donoghue <john.donoghue@ieee.org>
parents:
5786
diff
changeset
|
6 $(PKG)_VERSION := 3.21.2 |
43d8099f411c
* src/build-cmake.mk, src/cmake.mk: update to v3.21.2
John Donoghue <john.donoghue@ieee.org>
parents:
5786
diff
changeset
|
7 $(PKG)_CHECKSUM := 0c46621bb21f1eea01b9b6c9fefc39f9ff4a3216 |
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) \ |
5571
b19fb3ed330c
use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents:
5561
diff
changeset
|
36 $(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
|
37 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
4289 | 38 ../$($(PKG)_SUBDIR) |
39 $(MAKE) -C '$(1).build' -j '$(JOBS)' | |
40 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' | |
41 endef |