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