You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=wget
  9. PKG_VERSION:=1.20.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_HASH:=31cccfc6630528db1c8e3a06f6decf2a370060b982841cfab2b8677400a5092e
  14. PKG_MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  15. PKG_LICENSE:=GPL-3.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:gnu:wget
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/wget/Default
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libpcre +zlib
  24. SUBMENU:=File Transfer
  25. TITLE:=Non-interactive network downloader
  26. URL:=https://www.gnu.org/software/wget/index.html
  27. endef
  28. define Package/wget/Default/description
  29. Wget is a network utility to retrieve files from the Web using http
  30. and ftp, the two most widely used Internet protocols. It works
  31. non-interactively, so it will work in the background, after having
  32. logged off. The program supports recursive retrieval of web-authoring
  33. pages as well as ftp sites -- you can use wget to make mirrors of
  34. archives and home pages or to travel the Web like a WWW robot.
  35. endef
  36. define Package/wget
  37. $(call Package/wget/Default)
  38. DEPENDS+= +libopenssl +librt
  39. TITLE+= (with SSL support)
  40. VARIANT:=ssl
  41. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-ssl
  42. endef
  43. define Package/wget/description
  44. $(call Package/wget/Default/description)
  45. This package is built with SSL support.
  46. endef
  47. define Package/wget-nossl
  48. $(call Package/wget/Default)
  49. TITLE+= (without SSL support)
  50. VARIANT:=nossl
  51. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-nossl
  52. endef
  53. define Package/wget-nossl/description
  54. $(call Package/wget/Default/description)
  55. This package is built without SSL support.
  56. endef
  57. CONFIGURE_ARGS+= \
  58. --disable-rpath \
  59. --disable-iri \
  60. --disable-pcre2 \
  61. --with-included-libunistring \
  62. --without-libuuid \
  63. --without-libpsl
  64. CONFIGURE_VARS += \
  65. ac_cv_header_uuid_uuid_h=no
  66. ifeq ($(BUILD_VARIANT),ssl)
  67. CONFIGURE_ARGS+= \
  68. --with-ssl=openssl \
  69. --with-libssl-prefix="$(STAGING_DIR)/usr"
  70. CONFIGURE_VARS += \
  71. ac_cv_libssl=yes
  72. endif
  73. ifeq ($(BUILD_VARIANT),nossl)
  74. CONFIGURE_ARGS+= \
  75. --disable-ntlm \
  76. --without-ssl
  77. endif
  78. define Package/wget/install
  79. $(INSTALL_DIR) $(1)/usr/bin
  80. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
  81. endef
  82. define Package/wget-nossl/install
  83. $(INSTALL_DIR) $(1)/usr/bin
  84. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
  85. endef
  86. $(eval $(call BuildPackage,wget))
  87. $(eval $(call BuildPackage,wget-nossl))