mirror of
https://github.com/novatiq/packages.git
synced 2026-07-11 22:39:27 +01:00
50148276a1
wget 1.91.1 configure script tries to link libunistring if that is found. That lib is rather large and is not that essential for normal operations, so instead of depending on that, try to avoid linking it. Revert an upstream commit that removed the clearance of libunistring data in case IRI is explicitly disabled (like we have it). Reference to upstream commits: http://git.savannah.gnu.org/cgit/wget.git/commit/?id=00ae9b4ee2caa6640776e9777e7ef5a374d082c0 http://git.savannah.gnu.org/cgit/wget.git/commit/?id=990f3d67d340d226bbd4187f5d310a4d2bf2bfe4 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
100 lines
2.5 KiB
Makefile
100 lines
2.5 KiB
Makefile
#
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=wget
|
|
PKG_VERSION:=1.19.1
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
|
PKG_HASH:=0c950b9671881222a4d385b013c9604e98a8025d1988529dfca0e93617744cd2
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
|
PKG_LICENSE:=GPL-3.0+
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/wget/Default
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libpcre +zlib
|
|
SUBMENU:=File Transfer
|
|
TITLE:=Non-interactive network downloader
|
|
URL:=http://www.gnu.org/software/wget/index.html
|
|
endef
|
|
|
|
define Package/wget/Default/description
|
|
Wget is a network utility to retrieve files from the Web using http
|
|
and ftp, the two most widely used Internet protocols. It works
|
|
non-interactively, so it will work in the background, after having
|
|
logged off. The program supports recursive retrieval of web-authoring
|
|
pages as well as ftp sites -- you can use wget to make mirrors of
|
|
archives and home pages or to travel the Web like a WWW robot.
|
|
endef
|
|
|
|
define Package/wget
|
|
$(call Package/wget/Default)
|
|
DEPENDS+= +libopenssl +librt
|
|
TITLE+= (with SSL support)
|
|
VARIANT:=ssl
|
|
endef
|
|
|
|
define Package/wget/description
|
|
$(call Package/wget/Default/description)
|
|
This package is built with SSL support.
|
|
endef
|
|
|
|
define Package/wget-nossl
|
|
$(call Package/wget/Default)
|
|
TITLE+= (without SSL support)
|
|
VARIANT:=nossl
|
|
endef
|
|
|
|
define Package/wget-nossl/description
|
|
$(call Package/wget/Default/description)
|
|
This package is built without SSL support.
|
|
endef
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--disable-rpath \
|
|
--disable-iri \
|
|
--without-libuuid
|
|
|
|
CONFIGURE_VARS += \
|
|
ac_cv_header_uuid_uuid_h=no
|
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
CONFIGURE_ARGS+= \
|
|
--with-ssl=openssl \
|
|
--with-libssl-prefix="$(STAGING_DIR)/usr"
|
|
endif
|
|
|
|
ifeq ($(BUILD_VARIANT),nossl)
|
|
CONFIGURE_ARGS+= \
|
|
--disable-ntlm \
|
|
--without-ssl
|
|
endif
|
|
|
|
define Package/wget/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
|
|
ln -sf wget-ssl $(1)/usr/bin/wget
|
|
endef
|
|
|
|
define Package/wget-nossl/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
|
|
ln -sf wget-nossl $(1)/usr/bin/wget
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,wget))
|
|
$(eval $(call BuildPackage,wget-nossl))
|