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:=3
  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-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:gnu:wget
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/wget/Default
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libpcre +zlib
  23. SUBMENU:=File Transfer
  24. TITLE:=Non-interactive network downloader
  25. URL:=https://www.gnu.org/software/wget/index.html
  26. PROVIDES:=gnu-wget
  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. PROVIDES+=wget
  52. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-nossl
  53. endef
  54. define Package/wget-nossl/description
  55. $(call Package/wget/Default/description)
  56. This package is built without SSL support.
  57. endef
  58. CONFIGURE_ARGS+= \
  59. --disable-rpath \
  60. --disable-iri \
  61. --disable-pcre2 \
  62. --with-included-libunistring \
  63. --without-libuuid \
  64. --without-libpsl
  65. CONFIGURE_VARS += \
  66. ac_cv_header_uuid_uuid_h=no
  67. ifeq ($(BUILD_VARIANT),ssl)
  68. CONFIGURE_ARGS+= \
  69. --with-ssl=openssl \
  70. --with-libssl-prefix="$(STAGING_DIR)/usr"
  71. CONFIGURE_VARS += \
  72. ac_cv_libssl=yes
  73. endif
  74. ifeq ($(BUILD_VARIANT),nossl)
  75. CONFIGURE_ARGS+= \
  76. --disable-ntlm \
  77. --without-ssl
  78. endif
  79. define Package/wget/install
  80. $(INSTALL_DIR) $(1)/usr/bin
  81. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
  82. endef
  83. define Package/wget-nossl/install
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
  86. endef
  87. $(eval $(call BuildPackage,wget))
  88. $(eval $(call BuildPackage,wget-nossl))