summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0d51315..8f02c53 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
JOBS := 1
TARGET := i686-pc-mingw32
SOURCEFORGE_MIRROR := freefr.dl.sourceforge.net
+PKG_MIRROR := s3.amazonaws.com/mxe-pkg
PWD := $(shell pwd)
SHELL := bash
@@ -64,8 +65,9 @@ CHECK_PKG_ARCHIVE = \
DOWNLOAD_PKG_ARCHIVE = \
mkdir -p '$(PKG_DIR)' && \
$(if $($(1)_URL_2), \
- ( $(WGET) -T 30 -t 3 -O- '$($(1)_URL)' || $(WGET) -O- '$($(1)_URL_2)' ), \
- $(WGET) -O- '$($(1)_URL)') \
+ ( $(WGET) -T 30 -t 3 -O- '$($(1)_URL)' || $(WGET) -O- '$($(1)_URL_2)' || \
+ $(WGET) -O- '$(PKG_MIRROR)/$($(1)_FILE)'), \
+ $(WGET) -O- '$($(1)_URL)' || $(WGET) -O- '$(PKG_MIRROR)/$($(1)_FILE)') \
$(if $($(1)_FIX_GZIP), \
| gzip -d | gzip -9n, \
) \