boost: bump to version 1.63.0
[buildroot-gz.git] / package / lm-sensors / lm-sensors.mk
blobc19881788156293be96ff58a580f8b3b0c9e0680
1 ################################################################################
3 # lm-sensors
5 ################################################################################
7 LM_SENSORS_VERSION = 3.4.0
8 LM_SENSORS_SOURCE = lm-sensors_$(LM_SENSORS_VERSION).orig.tar.bz2
9 LM_SENSORS_SITE = http://snapshot.debian.org/archive/debian/20170208T211941Z/pool/main/l/lm-sensors
10 LM_SENSORS_INSTALL_STAGING = YES
11 LM_SENSORS_DEPENDENCIES = host-bison host-flex
12 LM_SENSORS_LICENSE = LGPLv2.1+ (libsensors), GPLv2+ (programs)
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 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) $(LM_SENSORS_MAKE_OPTS) -C $(@D)
42 endef
44 define LM_SENSORS_INSTALL_STAGING_CMDS
45 $(TARGET_MAKE_ENV) $(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 $(TARGET_MAKE_ENV) $(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))