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.

108 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:=2
  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:=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. PROVIDES+=gnu-wget
  42. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-ssl
  43. endef
  44. define Package/wget/description
  45. $(call Package/wget/Default/description)
  46. This package is built with SSL support.
  47. endef
  48. define Package/wget-nossl
  49. $(call Package/wget/Default)
  50. TITLE+= (without SSL support)
  51. VARIANT:=nossl
  52. PROVIDES+=gnu-wget
  53. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-nossl
  54. endef
  55. define Package/wget-nossl/description
  56. $(call Package/wget/Default/description)
  57. This package is built without SSL support.
  58. endef
  59. CONFIGURE_ARGS+= \
  60. --disable-rpath \
  61. --disable-iri \
  62. --disable-pcre2 \
  63. --with-included-libunistring \
  64. --without-libuuid \
  65. --without-libpsl
  66. CONFIGURE_VARS += \
  67. ac_cv_header_uuid_uuid_h=no
  68. ifeq ($(BUILD_VARIANT),ssl)
  69. CONFIGURE_ARGS+= \
  70. --with-ssl=openssl \
  71. --with-libssl-prefix="$(STAGING_DIR)/usr"
  72. CONFIGURE_VARS += \
  73. ac_cv_libssl=yes
  74. endif
  75. ifeq ($(BUILD_VARIANT),nossl)
  76. CONFIGURE_ARGS+= \
  77. --disable-ntlm \
  78. --without-ssl
  79. endif
  80. define Package/wget/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
  83. endef
  84. define Package/wget-nossl/install
  85. $(INSTALL_DIR) $(1)/usr/bin
  86. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
  87. endef
  88. $(eval $(call BuildPackage,wget))
  89. $(eval $(call BuildPackage,wget-nossl))