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.

110 lines
2.7 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. 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. PROVIDES:=wget
  28. endef
  29. define Package/wget/Default/description
  30. Wget is a network utility to retrieve files from the Web using http
  31. and ftp, the two most widely used Internet protocols. It works
  32. non-interactively, so it will work in the background, after having
  33. logged off. The program supports recursive retrieval of web-authoring
  34. pages as well as ftp sites -- you can use wget to make mirrors of
  35. archives and home pages or to travel the Web like a WWW robot.
  36. endef
  37. define Package/wget
  38. $(call Package/wget/Default)
  39. DEPENDS+= +libopenssl +librt
  40. TITLE+= (with SSL support)
  41. VARIANT:=ssl
  42. PROVIDES+=gnu-wget
  43. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-ssl
  44. endef
  45. define Package/wget/description
  46. $(call Package/wget/Default/description)
  47. This package is built with SSL support.
  48. endef
  49. define Package/wget-nossl
  50. $(call Package/wget/Default)
  51. TITLE+= (without SSL support)
  52. VARIANT:=nossl
  53. PROVIDES+=gnu-wget
  54. ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-nossl
  55. endef
  56. define Package/wget-nossl/description
  57. $(call Package/wget/Default/description)
  58. This package is built without SSL support.
  59. endef
  60. CONFIGURE_ARGS+= \
  61. --disable-rpath \
  62. --disable-iri \
  63. --disable-pcre2 \
  64. --with-included-libunistring \
  65. --without-libuuid \
  66. --without-libpsl
  67. CONFIGURE_VARS += \
  68. ac_cv_header_uuid_uuid_h=no
  69. ifeq ($(BUILD_VARIANT),ssl)
  70. CONFIGURE_ARGS+= \
  71. --with-ssl=openssl \
  72. --with-libssl-prefix="$(STAGING_DIR)/usr"
  73. CONFIGURE_VARS += \
  74. ac_cv_libssl=yes
  75. endif
  76. ifeq ($(BUILD_VARIANT),nossl)
  77. CONFIGURE_ARGS+= \
  78. --disable-ntlm \
  79. --without-ssl
  80. endif
  81. define Package/wget/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
  84. endef
  85. define Package/wget-nossl/install
  86. $(INSTALL_DIR) $(1)/usr/bin
  87. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
  88. endef
  89. $(eval $(call BuildPackage,wget))
  90. $(eval $(call BuildPackage,wget-nossl))