Mercurial > mxe-octave
annotate src/mingw-w64.mk @ 7207:9ed6500e56d3 default tip @
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 17 May 2024 20:16:41 +0200 |
parents | d189e17096ff |
children |
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 := |
6829
d189e17096ff
* src/mingw-w64.mk: update to v11.0.1
John Donoghue <john.donoghue@ieee.org>
parents:
6698
diff
changeset
|
6 $(PKG)_VERSION := 11.0.1 |
d189e17096ff
* src/mingw-w64.mk: update to v11.0.1
John Donoghue <john.donoghue@ieee.org>
parents:
6698
diff
changeset
|
7 $(PKG)_CHECKSUM := ab23c9af10fb38388ac75145dd9ffed3c64d1eeb |
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 |
5732
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
14 $(WGET) -q -O- 'http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/' | \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
15 $(SED) -n 's,.*mingw-w64-v\([0-9.]*\)\.tar.*,\1,p' | \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
16 $(SORT) -V | \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
17 tail -1 |
3496
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 |
6036
9ccca4b29aa3
gcc, mingw-w64: Set Windows API to Windows 7 for all Octave targets.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5975
diff
changeset
|
20 $(PKG)_WINAPI_VERSION_FLAGS := --with-default-win32-winnt=0x0601 |
5732
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
21 |
5961
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
22 ifneq ($(HOST_MSVCRT),ucrt) |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
23 $(PKG)_DEFAULT_MSVCRT := --with-default-msvcrt=msvcrt |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
24 else |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
25 $(PKG)_DEFAULT_MSVCRT := --with-default-msvcrt=ucrt |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
26 endif |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
27 |
3496
3c7b3646d0b3
update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 define $(PKG)_BUILD |
5732
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
29 mkdir '$(1).headers-build' |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
30 cd '$(1).headers-build' && '$(1)/mingw-w64-headers/configure' \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
31 --host='$(TARGET)' \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
32 --prefix='$(HOST_PREFIX)' \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
33 --enable-sdk=all \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
34 --enable-idl \ |
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
35 --enable-secure-api \ |
5961
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
36 $($(PKG)_WINAPI_VERSION_FLAGS) \ |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5869
diff
changeset
|
37 $($(PKG)_DEFAULT_MSVCRT) |
4524 | 38 |
5732
055dec6c319b
Allow other packages to use newer Windows API functions.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5433
diff
changeset
|
39 $(MAKE) -C '$(1).headers-build' install |
3496
3c7b3646d0b3
update to gcc 4.8.2 and allow building for MinGW-64
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 endef |