Mercurial > mxe-octave
annotate src/build-automake.mk @ 3726:1166dbbbe15c
build_packages.m: add helper function to install packages
* build_packages.m: add helper function to catch errors when installing packages.
author | John Donoghue |
---|---|
date | Tue, 28 Oct 2014 07:57:11 -0400 |
parents | 13be64f9f16d |
children | 0e56fe2d2ef5 |
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-automake |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
6 $(PKG)_VERSION := 1.11.6 |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := 29d7832b148e2157e03ad0d3620fbb7f5a13bc21 |
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 := automake-$($(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 := automake-$($(PKG)_VERSION).tar.gz |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/automake/$($(PKG)_FILE) |
3198
ff92c0dc6aeb
handle build-PKG dependencies in src/build-PKG.mk files
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
11 $(PKG)_DEPS := build-autoconf |
2971
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 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 echo $($(PKG)_VERSION) |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 endef |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 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
|
19 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
|
20 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
|
21 --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
|
22 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3198
diff
changeset
|
23 $(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
|
24 endef |