Mercurial > mxe-octave
annotate src/build-python.mk @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | b76c24971143 |
children |
rev | line source |
---|---|
3448
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := build-python |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4695 | 6 $(PKG)_VERSION := 2.7.15 |
7 $(PKG)_CHECKSUM := f99348a095ec4a6411c84c0d15343d11920c9724 | |
3448
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := Python-$($(PKG)_VERSION) |
4479
769b40b4b09e
update build-python package to use python 2.7.9
John W. Eaton <jwe@octave.org>
parents:
3600
diff
changeset
|
9 $(PKG)_FILE := Python-$($(PKG)_VERSION).tar.xz |
3600 | 10 $(PKG)_URL := http://www.python.org/ftp/python/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3515
a551b373abc4
build-python: no depeancy on build-gcc if using system gcc.
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
11 $(PKG)_DEPS := |
a551b373abc4
build-python: no depeancy on build-gcc if using system gcc.
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
12 ifneq ($(USE_SYSTEM_GCC),yes) |
a551b373abc4
build-python: no depeancy on build-gcc if using system gcc.
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
13 $(PKG)_DEPS += build-gcc |
a551b373abc4
build-python: no depeancy on build-gcc if using system gcc.
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
14 endif |
3448
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 echo $($(PKG)_VERSION) |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 endef |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 mkdir '$(1).build' |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 cd '$(1).build' && '$(1)/configure' \ |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 --prefix='$(BUILD_TOOLS_PREFIX)' |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 $(MAKE) -C '$(1).build' -j 1 install |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 endef |