diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-05-08 15:07:36 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-12-11 00:20:16 (GMT) |
commit | 060ac1657c6d0ce5aaf5c7c8da90420318fe21e2 (patch) | |
tree | 0e8ecab11acf114d45560b2343590616f36cd800 | |
parent | be0e3f4564416b43b68c69de4587fea80e23d213 (diff) | |
download | mxe-060ac1657c6d0ce5aaf5c7c8da90420318fe21e2.zip mxe-060ac1657c6d0ce5aaf5c7c8da90420318fe21e2.tar.gz mxe-060ac1657c6d0ce5aaf5c7c8da90420318fe21e2.tar.bz2 |
Makefile: add wget portability variable - $(WGET)
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -13,6 +13,9 @@ LIBTOOL := $(shell glibtool --help >/dev/null 2>&1 && echo g)libtool 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 +WGET := wget --no-check-certificate \ + --user-agent=$(shell wget --version | \ + $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p') REQUIREMENTS := autoconf automake bash bison bzip2 cmake flex \ gcc intltoolize $(LIBTOOL) $(LIBTOOLIZE) \ @@ -61,8 +64,8 @@ CHECK_PKG_ARCHIVE = \ DOWNLOAD_PKG_ARCHIVE = \ mkdir -p '$(PKG_DIR)' && \ $(if $($(1)_URL_2), \ - ( wget -T 30 -t 3 --no-check-certificate -O- '$($(1)_URL)' || wget --no-check-certificate -O- '$($(1)_URL_2)' ), \ - wget --no-check-certificate -O- '$($(1)_URL)') \ + ( $(WGET) -T 30 -t 3 -O- '$($(1)_URL)' || $(WGET) -O- '$($(1)_URL_2)' ), \ + $(WGET) -O- '$($(1)_URL)') \ $(if $($(1)_FIX_GZIP), \ | gzip -d | gzip -9n, \ ) \ |