annotate src/build-cmake.mk @ 6213:5f64fb928091 release

build-gcc: Avoid library clash when calling msgfmt. * src/build-gcc-1-msgfmt.patch: Don't use libraries from the build tree when calling `msgfmt`. * dist-files.mk: Add patch to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 06 May 2022 19:36:10 +0200
parents b448d1565091
children a35f70a5883a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := build-cmake
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
6020
b448d1565091 cmake: update to v3.22.1
John Donoghue <john.donoghue@ieee.org>
parents: 6000
diff changeset
6 $(PKG)_VERSION := 3.22.1
b448d1565091 cmake: update to v3.22.1
John Donoghue <john.donoghue@ieee.org>
parents: 6000
diff changeset
7 $(PKG)_CHECKSUM := 71861ee1c487edf05061ab5f7dc4f13a74bfbcdb
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := cmake-$($(PKG)_VERSION)
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := cmake-$($(PKG)_VERSION).tar.gz
4547
370d4b76f132 cmake: update to v3.10.0
John D
parents: 4545
diff changeset
10 $(PKG)_URL := http://www.cmake.org/files/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
4676
3edbea625ba8 build-cmake: depend on build-gcc if not using system GCC
John W. Eaton <jwe@octave.org>
parents: 4620
diff changeset
11 ifeq ($(USE_SYSTEM_GCC),yes)
3edbea625ba8 build-cmake: depend on build-gcc if not using system GCC
John W. Eaton <jwe@octave.org>
parents: 4620
diff changeset
12 $(PKG)_DEPS :=
3edbea625ba8 build-cmake: depend on build-gcc if not using system GCC
John W. Eaton <jwe@octave.org>
parents: 4620
diff changeset
13 else
3edbea625ba8 build-cmake: depend on build-gcc if not using system GCC
John W. Eaton <jwe@octave.org>
parents: 4620
diff changeset
14 $(PKG)_DEPS := build-gcc
3edbea625ba8 build-cmake: depend on build-gcc if not using system GCC
John W. Eaton <jwe@octave.org>
parents: 4620
diff changeset
15 endif
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_UPDATE
4545
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 4405
diff changeset
18 $(WGET) -q -O- 'https://www.cmake.org/cmake/resources/software.html' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 4405
diff changeset
19 $(SED) -n 's,.*cmake-\([0-9.]*\)\.tar.*,\1,p' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 4405
diff changeset
20 $(SORT) -V | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 4405
diff changeset
21 tail -1
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 endef
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 define $(PKG)_BUILD
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 mkdir '$(1).build'
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 cd '$(1).build' && '$(1)/configure' \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2971
diff changeset
27 --prefix='$(BUILD_TOOLS_PREFIX)'
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 $(MAKE) -C '$(1).build' -j '$(JOBS)'
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3012
diff changeset
29 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)'
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 endef