lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2490B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=wget
     11 PKG_VERSION:=1.18
     12 PKG_RELEASE:=2
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
     15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
     16 PKG_MD5SUM:=af9ca95a4bb8ac4a9bf10aeae66fa5ec
     17 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
     18 PKG_LICENSE:=GPL-3.0+
     19 PKG_LICENSE_FILES:=COPYING
     20 
     21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/wget/Default
     26   SECTION:=net
     27   CATEGORY:=Network
     28   DEPENDS:=+libpcre +zlib
     29   SUBMENU:=File Transfer
     30   TITLE:=Non-interactive network downloader
     31   URL:=http://www.gnu.org/software/wget/index.html
     32 endef
     33 
     34 define Package/wget/Default/description
     35  Wget is a network utility to retrieve files from the Web using http
     36  and ftp, the two most widely used Internet protocols. It works
     37  non-interactively, so it will work in the background, after having
     38  logged off. The program supports recursive retrieval of web-authoring
     39  pages as well as ftp sites -- you can use wget to make mirrors of
     40  archives and home pages or to travel the Web like a WWW robot.
     41 endef
     42 
     43 define Package/wget
     44 $(call Package/wget/Default)
     45   DEPENDS+= +libopenssl +librt
     46   TITLE+= (with SSL support)
     47   VARIANT:=ssl
     48 endef
     49 
     50 define Package/wget/description
     51 $(call Package/wget/Default/description)
     52  This package is built with SSL support.
     53 endef
     54 
     55 define Package/wget-nossl
     56 $(call Package/wget/Default)
     57   TITLE+= (without SSL support)
     58   VARIANT:=nossl
     59 endef
     60 
     61 define Package/wget-nossl/description
     62 $(call Package/wget/Default/description)
     63  This package is built without SSL support.
     64 endef
     65 
     66 CONFIGURE_ARGS+= \
     67 	--disable-rpath \
     68 	--disable-iri \
     69 	--without-libuuid
     70 
     71 CONFIGURE_VARS += \
     72 	ac_cv_header_uuid_uuid_h=no
     73 
     74 ifeq ($(BUILD_VARIANT),ssl)
     75 	CONFIGURE_ARGS+= \
     76 		--with-ssl=openssl \
     77 		--with-libssl-prefix="$(STAGING_DIR)/usr"
     78 endif
     79 
     80 ifeq ($(BUILD_VARIANT),nossl)
     81 	CONFIGURE_ARGS+= \
     82 		--disable-ntlm \
     83 		--without-ssl
     84 endif
     85 
     86 define Package/wget/install
     87 	$(INSTALL_DIR) $(1)/usr/bin
     88 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
     89 	ln -sf wget-ssl $(1)/usr/bin/wget
     90 endef
     91 
     92 define Package/wget-nossl/install
     93 	$(INSTALL_DIR) $(1)/usr/bin
     94 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
     95 	ln -sf wget-nossl $(1)/usr/bin/wget
     96 endef
     97 
     98 $(eval $(call BuildPackage,wget))
     99 $(eval $(call BuildPackage,wget-nossl))