1include $(TOPDIR)/rules.mk 2 3PKG_NAME:=uclient 4PKG_VERSION:=2016-01-28 5PKG_RELEASE=$(PKG_SOURCE_VERSION) 6 7PKG_SOURCE_PROTO:=git 8PKG_SOURCE_URL=$(OPENWRT_GIT)/project/uclient.git 9PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 10PKG_SOURCE_VERSION:=2e0918c7e0612449024caaaa8d44fb2d7a33f5f3 11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz 12PKG_MIRROR_MD5SUM:= 13CMAKE_INSTALL:=1 14 15PKG_BUILD_DEPENDS:=ustream-ssl 16 17PKG_LICENSE:=ISC 18PKG_LICENSE_FILES:= 19 20PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> 21 22include $(INCLUDE_DIR)/package.mk 23include $(INCLUDE_DIR)/cmake.mk 24 25define Package/libuclient 26 SECTION:=libs 27 CATEGORY:=Libraries 28 TITLE:=HTTP/1.1 client library 29 ABI_VERSION:=$(PKG_VERSION) 30 DEPENDS:=+libubox 31endef 32 33define Package/uclient-fetch 34 SECTION:=net 35 CATEGORY:=Network 36 TITLE:=Tiny wget replacement using libuclient 37 DEPENDS:=+libuclient 38endef 39 40define Package/libuclient/install 41 $(INSTALL_DIR) $(1)/usr/lib 42 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libuclient.so $(1)/usr/lib/ 43endef 44 45define Package/uclient-fetch/install 46 $(INSTALL_DIR) $(1)/bin 47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/uclient-fetch $(1)/bin/ 48 ln -s uclient-fetch $(1)/bin/wget 49endef 50 51$(eval $(call BuildPackage,libuclient)) 52$(eval $(call BuildPackage,uclient-fetch)) 53