package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / lm-sensors / lm-sensors.mk
blobc26f91918d2af71243c5cd356b961861ab65fe5e
1 ################################################################################
3 # lm-sensors
5 ################################################################################
7 LM_SENSORS_VERSION = 3.3.5
8 LM_SENSORS_SOURCE = lm_sensors-$(LM_SENSORS_VERSION).tar.bz2
9 LM_SENSORS_SITE = http://dl.lm-sensors.org/lm-sensors/releases
10 LM_SENSORS_INSTALL_STAGING = YES
11 LM_SENSORS_DEPENDENCIES = host-bison host-flex
12 LM_SENSORS_LICENSE = libsensors LGPLv2.1+, programs GPLv2+
13 LM_SENSORS_LICENSE_FILES = COPYING.LGPL COPYING
15 LM_SENSORS_BINS_ = bin/sensors-conf-convert
16 LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_SENSORS) += bin/sensors
17 LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_FANCONTROL) += sbin/fancontrol
18 LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_ISADUMP) += sbin/isadump
19 LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_ISASET) += sbin/isaset
20 LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_PWMCONFIG) += sbin/pwmconfig
21 LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_SENSORS_DETECT) += sbin/sensors-detect
23 LM_SENSORS_MAKE_OPTS = \
24 BUILD_STATIC_LIB=1 \
25 MACHINE=$(KERNEL_ARCH) \
26 PREFIX=/usr
28 ifeq ($(BR2_STATIC_LIBS),y)
29 LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=0
30 else
31 LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=1
32 endif
34 ifeq ($(BR2_SHARED_LIBS),y)
35 LM_SENSORS_MAKE_OPTS += BUILD_STATIC_LIB=0
36 else
37 LM_SENSORS_MAKE_OPTS += BUILD_STATIC_LIB=1
38 endif
40 define LM_SENSORS_BUILD_CMDS
41 $(MAKE) $(TARGET_CONFIGURE_OPTS) $(LM_SENSORS_MAKE_OPTS) -C $(@D)
42 endef
44 define LM_SENSORS_INSTALL_STAGING_CMDS
45 $(MAKE) -C $(@D) $(LM_SENSORS_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
46 rm -f $(addprefix $(STAGING_DIR)/usr/,$(LM_SENSORS_BINS_) $(LM_SENSORS_BINS_y))
47 endef
49 define LM_SENSORS_INSTALL_TARGET_CMDS
50 $(MAKE) -C $(@D) $(LM_SENSORS_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
51 rm -f $(addprefix $(TARGET_DIR)/usr/,$(LM_SENSORS_BINS_))
52 endef
54 $(eval $(generic-package))