Mercurial > mxe-octave
annotate src/build-cmake.mk @ 5030:eec61a755122
cmake: update to v3.14.0
* src/build-cmake.mk, src/cmake.mk: update version, checksum
author | John Donoghue |
---|---|
date | Tue, 19 Mar 2019 10:34:37 -0400 |
parents | e3f76a0768e3 |
children | ff2697d81659 |
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 := |
5030 | 6 $(PKG)_VERSION := 3.14.0 |
7 $(PKG)_CHECKSUM := 30e5423245d98ad98f6ee0c5f73c587846b99d6b | |
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 | 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 |