Mercurial > mxe-octave
view src/mingw-w64.mk @ 5885:fbad4bcfdf3c
* build-gettext.mk: One more attempt to fix build issues.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 10 Sep 2021 15:34:26 -0400 |
parents | ec73307e819c |
children | 7c0066684448 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := mingw-w64 $(PKG)_IGNORE := $(PKG)_VERSION := 9.0.0 $(PKG)_CHECKSUM := 9c496ed063e085888d250cc461ec4d31d97b72f1 $(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-release/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/' | \ $(SED) -n 's,.*mingw-w64-v\([0-9.]*\)\.tar.*,\1,p' | \ $(SORT) -V | \ tail -1 endef ifeq ($(OCTAVE_TARGET),default-octave) # FIXME: Adapt condition when Octave 7 moves to stable or it is released. $(PKG)_WINAPI_VERSION_FLAGS := --with-default-win32-winnt=0x0601 endif define $(PKG)_BUILD mkdir '$(1).headers-build' cd '$(1).headers-build' && '$(1)/mingw-w64-headers/configure' \ --host='$(TARGET)' \ --prefix='$(HOST_PREFIX)' \ --enable-sdk=all \ --enable-idl \ --enable-secure-api \ $($(PKG)_WINAPI_VERSION_FLAGS) $(MAKE) -C '$(1).headers-build' install endef