1 include $(TOPDIR)/rules.mk
4 PKG_VERSION:=2016-07-30
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
8 PKG_SOURCE_URL=$(LEDE_GIT)/project/uclient.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=ccb314db2e99463de15eed9d7626360d82aec4d2
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
15 PKG_BUILD_DEPENDS:=ustream-ssl
20 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
25 define Package/libuclient
28 TITLE:=HTTP/1.1 client library
29 ABI_VERSION:=$(PKG_VERSION)
33 define Package/uclient-fetch
36 TITLE:=Tiny wget replacement using libuclient
40 define Package/libuclient/install
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libuclient.so $(1)/usr/lib/
45 define 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
51 $(eval $(call BuildPackage,libuclient))
52 $(eval $(call BuildPackage,uclient-fetch))