annotate src/build-python.mk @ 4479:769b40b4b09e

update build-python package to use python 2.7.9
author John W. Eaton <jwe@octave.org>
date Fri, 29 Sep 2017 16:29:17 -0400
parents a89ff94653de
children b76c24971143
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
4479
769b40b4b09e update build-python package to use python 2.7.9
John W. Eaton <jwe@octave.org>
parents: 3600
diff changeset
6 $(PKG)_VERSION := 2.7.9
769b40b4b09e update build-python package to use python 2.7.9
John W. Eaton <jwe@octave.org>
parents: 3600
diff changeset
7 $(PKG)_CHECKSUM := 3172f6e957713c2d9fca462cc16068222fd1b9d3
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
a89ff94653de build-python: Update python to 2.7.7
John Donoghue
parents: 3515
diff changeset
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