Mercurial > mxe-octave
annotate src/build-cmake.mk @ 4547:370d4b76f132
cmake: update to v3.10.0
* src/build-cmake.mk, src/cmake.mk: update version, checksum and url
author | John D |
---|---|
date | Mon, 27 Nov 2017 08:48:25 -0500 |
parents | 0e56fe2d2ef5 |
children | 8d9def359371 |
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 := |
4547 | 6 $(PKG)_VERSION := 3.10.0 |
7 $(PKG)_CHECKSUM := b914ab1de1ebadf9f84a9afe89167ea22846b26e | |
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) |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 $(PKG)_DEPS := |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
4545
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
4405
diff
changeset
|
14 $(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
|
15 $(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
|
16 $(SORT) -V | \ |
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
4405
diff
changeset
|
17 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
|
18 endef |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 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
|
21 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
|
22 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
|
23 --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
|
24 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
25 $(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
|
26 endef |