Mercurial > mxe-octave
annotate src/build-gawk.mk @ 3659:6a4cb2cb4493
build-gawk: update to build in native mingw
* src/build-gawk.patch: add native mingw build rule
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 09 Jul 2014 19:56:54 -0400 |
parents | 33489e913a5e |
children | 0e56fe2d2ef5 |
rev | line source |
---|---|
3650
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := build-gawk |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 $(PKG)_VERSION := 4.1.1 |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := 0480d23fffbf04bfd0d4ede4c1c3d57eb81cc771 |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := gawk-$($(PKG)_VERSION) |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := gawk-$($(PKG)_VERSION).tar.gz |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gawk/$($(PKG)_FILE) |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 $(PKG)_DEPS := |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 echo $($(PKG)_VERSION) |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 endef |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 |
3659
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
18 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
19 define $(PKG)_BUILD |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
20 # copy from pc folder |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
21 cp '$(1)'/pc/*.* '$(1)' |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
22 cp '$(1)/pc/Makefile' '$(1)' |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
23 cp '$(1)/pc/Makefile.ext' '$(1)/extension/Makefile' |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
24 cp '$(1)/pc/Makefile.tst' '$(1)/test/Makefile' |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
25 $(MAKE) -C '$(1)' -j '$(JOBS)' mingw32 |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
26 $(MAKE) -C '$(1)/extension' -j '$(JOBS)' |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
27 $(MAKE) -C '$(1)' -j 1 install prefix=$(BUILD_TOOLS_PREFIX) |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
28 endef |
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
29 else |
3650
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 define $(PKG)_BUILD |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 mkdir '$(1).build' |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 cd '$(1).build' && '$(1)/configure' \ |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 --prefix='$(BUILD_TOOLS_PREFIX)' |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 $(MAKE) -C '$(1).build' -j 1 install |
33489e913a5e
include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 endef |
3659
6a4cb2cb4493
build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3650
diff
changeset
|
37 endif |