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.

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