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.

106 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:=5
  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 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-ssl
  37. $(call Package/wget/Default)
  38. DEPENDS+= +libopenssl +librt
  39. TITLE+= (with SSL support)
  40. VARIANT:=ssl
  41. ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/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/libexec/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/libexec
  80. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/libexec/wget-ssl
  81. endef
  82. define Package/wget-nossl/install
  83. $(INSTALL_DIR) $(1)/usr/libexec
  84. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/libexec/wget-nossl
  85. endef
  86. $(eval $(call BuildPackage,wget-ssl))
  87. $(eval $(call BuildPackage,wget-nossl))