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.

109 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.21.2
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_HASH:=e6d4c76be82c676dd7e8c61a29b2ac8510ae108a810b5d1d18fc9a1d2c9a2497
  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_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/wget/Default
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libpcre +zlib
  25. SUBMENU:=File Transfer
  26. TITLE:=Non-interactive network downloader
  27. URL:=https://www.gnu.org/software/wget/index.html
  28. PROVIDES:=gnu-wget wget
  29. endef
  30. define Package/wget/Default/description
  31. Wget is a network utility to retrieve files from the Web using http
  32. and ftp, the two most widely used Internet protocols. It works
  33. non-interactively, so it will work in the background, after having
  34. logged off. The program supports recursive retrieval of web-authoring
  35. pages as well as ftp sites -- you can use wget to make mirrors of
  36. archives and home pages or to travel the Web like a WWW robot.
  37. endef
  38. define Package/wget-ssl
  39. $(call Package/wget/Default)
  40. DEPENDS+= +libopenssl +librt
  41. TITLE+= (with SSL support)
  42. VARIANT:=ssl
  43. ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/wget-ssl
  44. endef
  45. define Package/wget-ssl/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. ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/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-ssl/install
  81. $(INSTALL_DIR) $(1)/usr/libexec
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wget $(1)/usr/libexec/wget-ssl
  83. endef
  84. define Package/wget-nossl/install
  85. $(INSTALL_DIR) $(1)/usr/libexec
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wget $(1)/usr/libexec/wget-nossl
  87. endef
  88. $(eval $(call BuildPackage,wget-ssl))
  89. $(eval $(call BuildPackage,wget-nossl))