Mercurial > mxe-octave
annotate src/build-python.mk @ 3700:76745b5dfd81
bump version to 0.0.31
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 28 Aug 2014 16:58:58 -0400 |
parents | a89ff94653de |
children | 769b40b4b09e |
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 := |
3600 | 6 $(PKG)_VERSION := 2.7.7 |
7 $(PKG)_CHECKSUM := 1db01d7f325d8ceaf986976800106018b82ae45a | |
3448
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 |
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 |