xref: /OK3568_Linux_fs/buildroot/package/hwloc/hwloc.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# hwloc
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunHWLOC_VERSION_MAJOR = 2.4
8*4882a593SmuzhiyunHWLOC_VERSION = $(HWLOC_VERSION_MAJOR).1
9*4882a593SmuzhiyunHWLOC_SOURCE = hwloc-$(HWLOC_VERSION).tar.bz2
10*4882a593SmuzhiyunHWLOC_SITE = https://download.open-mpi.org/release/hwloc/v$(HWLOC_VERSION_MAJOR)
11*4882a593SmuzhiyunHWLOC_LICENSE = BSD-3-Clause
12*4882a593SmuzhiyunHWLOC_LICENSE_FILES = COPYING
13*4882a593SmuzhiyunHWLOC_DEPENDENCIES = host-pkgconf
14*4882a593SmuzhiyunHWLOC_INSTALL_STAGING = YES
15*4882a593SmuzhiyunHWLOC_SELINUX_MODULES = hwloc
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
18*4882a593Smuzhiyun# provided by autoconf relies on wchar_t.
19*4882a593SmuzhiyunHWLOC_CONF_ENV = ac_cv_prog_cc_c99=-std=gnu99
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunHWLOC_CONF_OPTS = \
22*4882a593Smuzhiyun	--disable-opencl \
23*4882a593Smuzhiyun	--disable-cuda \
24*4882a593Smuzhiyun	--disable-nvml \
25*4882a593Smuzhiyun	--disable-gl \
26*4882a593Smuzhiyun	--disable-cairo \
27*4882a593Smuzhiyun	--disable-doxygen
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_UDEV),y)
30*4882a593SmuzhiyunHWLOC_CONF_OPTS += --enable-libudev
31*4882a593SmuzhiyunHWLOC_DEPENDENCIES += udev
32*4882a593Smuzhiyunelse
33*4882a593SmuzhiyunHWLOC_CONF_OPTS += --disable-libudev
34*4882a593Smuzhiyunendif
35*4882a593Smuzhiyun
36*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBPCIACCESS),y)
37*4882a593SmuzhiyunHWLOC_CONF_OPTS += --enable-pci
38*4882a593SmuzhiyunHWLOC_DEPENDENCIES += libpciaccess
39*4882a593Smuzhiyunelse
40*4882a593SmuzhiyunHWLOC_CONF_OPTS += --disable-pci
41*4882a593Smuzhiyunendif
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBXML2),y)
44*4882a593SmuzhiyunHWLOC_CONF_OPTS += --enable-libxml2
45*4882a593SmuzhiyunHWLOC_DEPENDENCIES += libxml2
46*4882a593Smuzhiyunelse
47*4882a593SmuzhiyunHWLOC_CONF_OPTS += --disable-libxml2
48*4882a593Smuzhiyunendif
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NCURSES),y)
51*4882a593SmuzhiyunHWLOC_DEPENDENCIES += ncurses
52*4882a593Smuzhiyunendif
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NUMACTL),y)
55*4882a593SmuzhiyunHWLOC_DEPENDENCIES += numactl
56*4882a593Smuzhiyunendif
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun$(eval $(autotools-package))
59