Mercurial > mxe-octave
annotate src/build-python.mk @ 3515:a551b373abc4
build-python: no depeancy on build-gcc if using system gcc.
* src/build-python.mk: only add build-gcc as a dependancy if not using system gcc.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 12 Feb 2014 18:23:02 -0500 |
parents | 13be64f9f16d |
children | a89ff94653de |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3448
diff
changeset
|
6 $(PKG)_VERSION := 2.7.6 |
3448
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := 8328d9f1d55574a287df384f4931a3942f03da64 |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := Python-$($(PKG)_VERSION) |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := Python-$($(PKG)_VERSION).tgz |
f0a1b0872dbb
build-python: New build tool package.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_URL := http://www.python.org/ftp/python/2.7.6/$($(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 |