Makefile 1.2 KB

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