diff options
author | Tony Theodore <tonyt@logyst.com> | 2017-02-04 07:53:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-04 07:53:57 (GMT) |
commit | 36791e9566534ae19eccda7bf9b53d192d490171 (patch) | |
tree | d8a44dacc7f9ec31055d3e46221fb18f160f78b5 /Makefile | |
parent | 5a629857dfb4d55998627767669f087afc639568 (diff) | |
parent | 9bb609a73e349c876638a59e00276b57d7689782 (diff) | |
download | mxe-36791e9566534ae19eccda7bf9b53d192d490171.zip mxe-36791e9566534ae19eccda7bf9b53d192d490171.tar.gz mxe-36791e9566534ae19eccda7bf9b53d192d490171.tar.bz2 |
Merge pull request #1661 from tonytheodore/ua
allow to change User Agent; fix levmar download
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -34,9 +34,9 @@ LIBTOOLIZE := $(shell glibtoolize --help >/dev/null 2>&1 && echo g)libtoolize PATCH := $(shell gpatch --help >/dev/null 2>&1 && echo g)patch SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed SORT := $(shell gsort --help >/dev/null 2>&1 && echo g)sort -WGET := wget --no-check-certificate \ - --user-agent=$(shell wget --version | \ - $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p') +DEFAULT_UA := $(shell wget --version | $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p') +WGET = wget --no-check-certificate \ + --user-agent='$(or $($(1)_UA),$(DEFAULT_UA))' REQUIREMENTS := autoconf automake autopoint bash bison bzip2 flex \ $(BUILD_CC) $(BUILD_CXX) gperf intltoolize $(LIBTOOL) \ @@ -464,7 +464,7 @@ download-only-$($(1)_FILE):: @[ -d '$(LOG_DIR)/$(TIMESTAMP)' ] || mkdir -p '$(LOG_DIR)/$(TIMESTAMP)' @if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ $(PRINTF_FMT) '[download]' '$(1)' | $(RTRIM); \ - ($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ + (set -x; $(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ grep 'MXE Warning' '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ ln -sf '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \ if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ |