summaryrefslogtreecommitdiffstats
path: root/src/mingw-w64.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-05-23 14:35:29 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-06-01 12:28:02 (GMT)
commitb974ef08d8b4fc555259eb49c9e34ef69c411948 (patch)
tree3d87088e9b6469153e5f33e9fc035410e9d08c3b /src/mingw-w64.mk
parent95e37fbe7e528bc61e324bde2608046db66521c3 (diff)
downloadmxe-b974ef08d8b4fc555259eb49c9e34ef69c411948.zip
mxe-b974ef08d8b4fc555259eb49c9e34ef69c411948.tar.gz
mxe-b974ef08d8b4fc555259eb49c9e34ef69c411948.tar.bz2
add mingw-w64 runtime and pthreads implementation, update related toolchain files
Diffstat (limited to 'src/mingw-w64.mk')
-rw-r--r--src/mingw-w64.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mingw-w64.mk b/src/mingw-w64.mk
new file mode 100644
index 0000000..bccc557
--- /dev/null
+++ b/src/mingw-w64.mk
@@ -0,0 +1,29 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# Mingw-w64
+PKG := mingw-w64
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := bc48803ff15a777adad8890519bd3ebec90acab9
+$(PKG)_SUBDIR := mirror-$(PKG)-$($(PKG)_VERSION)/trunk
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://github.com/mirror/$(PKG)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS :=
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://github.com/mirror/$(PKG)/commits/master' | \
+ $(SED) -n 's#.*<span class="sha">\([^<]\{7\}\)[^<]\{3\}<.*#\1#p' | \
+ head -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)