annotate src/mingw-w64.mk @ 4238:bdcbb82d57e2

pkg-install.py: fail pkg build if configure fails (Bug #49503) * tools/pkg-install.py: check status of configure call and raise exeption on error
author John D
date Thu, 03 Nov 2016 03:48:05 -0400
parents 0c9264cfa053
children b7d6a53fa46c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3496
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := mingw-w64
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4190
0c9264cfa053 mingw-w64: update to 4.0.6
John D
parents: 3736
diff changeset
6 $(PKG)_VERSION := 4.0.6
0c9264cfa053 mingw-w64: update to 4.0.6
John D
parents: 3736
diff changeset
7 $(PKG)_CHECKSUM := cc9ef3be9bb31ee3fdc4731d214034be5483270d
3496
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION)
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-release/$($(PKG)_FILE)
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/' | \
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 $(SED) -n 's,.*mingw-w64-v\([0-9.]*\)\.tar.*,\1,p' | \
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 $(SORT) -V | \
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 tail -1
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 endef
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 define $(PKG)_BUILD
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 mkdir '$(1).headers-build'
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 cd '$(1).headers-build' && '$(1)/mingw-w64-headers/configure' \
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 --host='$(TARGET)' \
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 --prefix='$(HOST_PREFIX)' \
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 --enable-sdk=all
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 $(MAKE) -C '$(1).headers-build' install
3c7b3646d0b3 update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 endef