Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uclient
  3. PKG_RELEASE=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/uclient.git
  6. PKG_MIRROR_HASH:=09857c0463c9ff56ae37fff4a73f58008ea2d844c909aab6669277afa8ef1e72
  7. PKG_SOURCE_DATE:=2020-06-17
  8. PKG_SOURCE_VERSION:=51e16ebffc740c6afcdd45aced20fc0354a502d7
  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:=20160123
  21. DEPENDS:=+libubox
  22. endef
  23. define Package/uclient-fetch
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=Tiny wget replacement using libuclient
  27. ALTERNATIVES:=200:/usr/bin/wget:/bin/uclient-fetch
  28. PROVIDES:=wget
  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. endef
  39. $(eval $(call BuildPackage,libuclient))
  40. $(eval $(call BuildPackage,uclient-fetch))