2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2012-10-11 09:24:25 +01:00
|
|
|
|
|
|
|
PKG := wget
|
2016-06-10 21:36:15 +01:00
|
|
|
$(PKG)_VERSION := 1.18
|
|
|
|
$(PKG)_CHECKSUM := b5b55b75726c04c06fe253daec9329a6f1a3c0c1878e3ea76ebfebc139ea9cc1
|
2012-10-11 09:24:25 +01:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
|
|
|
|
$(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
|
2015-09-23 08:41:16 +01:00
|
|
|
$(PKG)_DEPS := gcc gnutls libidn libntlm pthreads
|
2012-10-11 09:24:25 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
|
|
|
$(WGET) -q -O- 'http://git.savannah.gnu.org/cgit/wget.git/refs/' | \
|
|
|
|
$(SED) -n "s,.*<a href='/cgit/wget.git/tag/?id=v\([0-9.]*\)'>.*,\1,p" | \
|
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
# avoid conflict with base64_encode from gnutls
|
2014-10-29 19:10:52 +00:00
|
|
|
$(if $(BUILD_STATIC), $(SED) -i 's/^base64_encode /wget_base64_encode /;' '$(1)/src/utils.c')
|
2012-10-11 09:24:25 +01:00
|
|
|
cd '$(1)' && ./configure \
|
2015-09-28 00:42:02 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2013-06-04 07:03:34 +01:00
|
|
|
--with-ssl=gnutls \
|
2016-01-12 21:40:57 +00:00
|
|
|
CFLAGS='-DIN6_ARE_ADDR_EQUAL=IN6_ADDR_EQUAL $(if $(BUILD_STATIC),-DGNUTLS_INTERNAL_BUILD,)'
|
2015-09-11 07:25:58 +01:00
|
|
|
$(MAKE) -C '$(1)/lib' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1)/src' -j '$(JOBS)' install-binPROGRAMS
|
2012-10-11 09:24:25 +01:00
|
|
|
endef
|