You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libsigar
  3. PKG_SOURCE_DATE:=2017-02-21
  4. PKG_SOURCE_VERSION:=a6c61edf8c64e013411e8c9d753165cd03102c6e
  5. PKG_RELEASE:=1
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  7. PKG_SOURCE_URL:=https://codeload.github.com/boundary/sigar/tar.gz/$(PKG_SOURCE_VERSION)?
  8. PKG_HASH:=5232f0fa994ab60ad4622364fad0297c0054e04f0cfec9c586b14e33bbc387da
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/sigar-$(PKG_SOURCE_VERSION)
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_LICENSE_FILE:=LICENSE
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. PKG_BUILD_PARALLEL:=1
  15. CMAKE_INSTALL:=1
  16. define Package/libsigar
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=System Information Gatherer And Reporter
  20. URL:=https://github.com/boundary/sigar
  21. DEPENDS:=+libtirpc
  22. MAINTAINER:=Amol Bhave <ambhave@fb.com>
  23. endef
  24. define Package/libsigar/description
  25. System Information Gatherer And Reporter
  26. endef
  27. define Package/libsigar/install
  28. $(INSTALL_DIR) $(1)/usr/lib
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigar.so* $(1)/usr/lib/
  30. endef
  31. $(eval $(call BuildPackage,libsigar))