annotate src/build-gawk.mk @ 4545:0e56fe2d2ef5

Makefile.in: add update-build-tools target * Makefile.in: add update-build-tools target * src/build-autoconf.mk, src/build-automake.mk, src/build-bison.mk, src/build-gawk.mk, src/build-gcc.mk, src/build-gettext.mk, src/build-gperf.mk, src/build-m4.mk, src/build-texinfo.mk, src/build-libtool.mk : update PKG_UPDATE for getting latest version from gnu.org * src/build-cmake.mk, src/build-flex.mk, src/build-lzip.mk, src/build-pkg-config.mk, src/pkg-config.mk, src/build-scons.mk : add implemented PKG_UPDATE macro
author John Donoghue <john.donoghue@ieee.org>
date Thu, 23 Nov 2017 12:05:29 -0500
parents 6a4cb2cb4493
children c24a1176256e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4545
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3659
diff changeset
14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/gawk/?C=M;O=D' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3659
diff changeset
15 $(SED) -n 's,.*<a href="gawk-\([0-9\.]*\)\.tar.*,\1,p' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3659
diff changeset
16 $(SORT) -V | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3659
diff changeset
17 tail -1
3650
33489e913a5e include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 endef
33489e913a5e include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
3659
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
20 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
21 define $(PKG)_BUILD
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
22 # copy from pc folder
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
23 cp '$(1)'/pc/*.* '$(1)'
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
24 cp '$(1)/pc/Makefile' '$(1)'
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
25 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
26 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
27 $(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
28 $(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
29 $(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
30 endef
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
31 else
3650
33489e913a5e include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 define $(PKG)_BUILD
33489e913a5e include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 mkdir '$(1).build'
33489e913a5e include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 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
35 --prefix='$(BUILD_TOOLS_PREFIX)'
33489e913a5e include gawk as one of the build tools we build
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 $(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
37 $(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
38 endef
3659
6a4cb2cb4493 build-gawk: update to build in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3650
diff changeset
39 endif