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.

92 lines
2.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=hwloc
  7. PKG_VERSION:=2.0.1
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://download.open-mpi.org/release/$(PKG_NAME)/v2.0/
  11. PKG_HASH:=f1156df22fc2365a31a3dc5f752c53aad49e34a5e22d75ed231cd97eaa437f9d
  12. PKG_LICENSE:=BSD-3-Clause
  13. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  14. PKG_INSTALL:=1
  15. PKG_FIXUP:=autoreconf
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/hwloc/Default
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Portable Hardware Locality
  21. URL:=https://www.open-mpi.org/projects/hwloc/
  22. endef
  23. define Package/hwloc/Default/description
  24. The Portable Hardware Locality (hwloc) software package provides a
  25. portable abstraction (across OS, versions, architectures, ...) of the
  26. hierarchical topology of modern architectures, including NUMA memory
  27. nodes, sockets, shared caches, cores and simultaneous multithreading. It
  28. also gathers various system attributes such as cache and memory
  29. information as well as the locality of I/O devices such as network
  30. interfaces, InfiniBand HCAs or GPUs.
  31. endef
  32. define Package/hwloc-utils
  33. $(call Package/hwloc/Default)
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. TITLE+= utilities
  37. DEPENDS+= +libhwloc
  38. endef
  39. define Package/hwloc-utils/description
  40. $(call Package/hwloc/Default/description)
  41. This package contains the hwloc utilities.
  42. endef
  43. define Package/libhwloc
  44. $(call Package/hwloc/Default)
  45. SECTION:=libs
  46. CATEGORY:=Libraries
  47. TITLE+= libraries
  48. endef
  49. define Package/libhwloc/description
  50. $(call Package/hwloc/Default/description)
  51. This package contains the hwloc libraries.
  52. endef
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/hwloc.h $(STAGING_DIR)/usr/include/
  56. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/hwloc
  57. $(CP) $(PKG_INSTALL_DIR)/usr/include/hwloc/*.h $(STAGING_DIR)/usr/include/hwloc/
  58. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/hwloc/autogen
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/hwloc/autogen/*.h $(STAGING_DIR)/usr/include/hwloc/autogen/
  60. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/
  62. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  63. $(INSTALL_DATA) \
  64. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  65. $(1)/usr/lib/pkgconfig
  66. endef
  67. define Package/hwloc-utils/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  70. endef
  71. define Package/libhwloc/install
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  74. endef
  75. $(eval $(call BuildPackage,hwloc-utils))
  76. $(eval $(call BuildPackage,libhwloc))