2
0

Makefile 1.2 KB

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