kumquat-buildroot/package/hwloc/hwloc.mk
Steven Noonan 6e80c3007b hwloc: new package
[Thomas:
  - remove mandatory libpciaccess and numactl dependencies. Those
    dependencies are optional.
  - add dependency on threads.
  - use a HWLOC_VERSION_MAJOR variable to avoid repeating the major
    version number in HWLOC_SITE.
  - explicitly disable features we don't support.
  - explicitly enable/disable pci and numa support, depending on the
    availability of the corresponding dependencies.
  - add dependency on host-pkgconf, since pkg-config can be used by
    hwloc configure script.]

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-20 21:32:15 +01:00

39 lines
940 B
Makefile

################################################################################
#
# hwloc
#
################################################################################
HWLOC_VERSION_MAJOR = 1.10
HWLOC_VERSION = $(HWLOC_VERSION_MAJOR).1
HWLOC_SOURCE = hwloc-$(HWLOC_VERSION).tar.bz2
HWLOC_SITE = http://www.open-mpi.org/software/hwloc/v$(HWLOC_VERSION_MAJOR)/downloads
HWLOC_LICENSE = BSD-3c
HWLOC_LICENSE_FILES = COPYING
HWLOC_DEPENDENCIES = host-pkgconf
HWLOC_CONF_OPTS = \
--disable-opencl \
--disable-cuda \
--disable-nvml \
--disable-gl \
--disable-cairo \
--disable-libxml2 \
--disable-doxygen
ifeq ($(BR2_PACKAGE_LIBPCIACCESS),y)
HWLOC_CONF_OPTS += --enable-pci
HWLOC_DEPENDENCIES += libpciaccess
else
HWLOC_CONF_OPTS += --disable-pci
endif
ifeq ($(BR2_PACKAGE_NUMACTL),y)
HWLOC_CONF_OPTS += --enable-libnuma
HWLOC_DEPENDENCIES += numactl
else
HWLOC_CONF_OPTS += --disable-libnuma
endif
$(eval $(autotools-package))