mxe/src/mingw-w64.mk

31 lines
1012 B
Makefile
Raw Normal View History

# This file is part of MXE.
# See index.html for further information.
PKG := mingw-w64
$(PKG)_IGNORE :=
2014-09-03 10:59:46 +01:00
$(PKG)_VERSION := 3.2.0
2014-09-03 21:09:54 +01:00
$(PKG)_CHECKSUM := edd7ce33e36689fa35ab2c9799c4e8f33e288d70
2014-09-03 10:59:46 +01:00
$(PKG)_SUBDIR :=
$(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
define $(PKG)_BUILD_mingw-w64
mkdir '$(1).headers-build'
cd '$(1).headers-build' && '$(1)/mingw-w64-headers/configure' \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-sdk=all
$(MAKE) -C '$(1).headers-build' install
endef
$(PKG)_BUILD_x86_64-w64-mingw32 = $($(PKG)_BUILD_mingw-w64)
$(PKG)_BUILD_i686-w64-mingw32 = $($(PKG)_BUILD_mingw-w64)