1 ################################################################################
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
= \
25 MACHINE
=$(KERNEL_ARCH
) \
28 ifeq ($(BR2_STATIC_LIBS
),y
)
29 LM_SENSORS_MAKE_OPTS
+= BUILD_SHARED_LIB
=0
31 LM_SENSORS_MAKE_OPTS
+= BUILD_SHARED_LIB
=1
34 ifeq ($(BR2_SHARED_LIBS
),y
)
35 LM_SENSORS_MAKE_OPTS
+= BUILD_STATIC_LIB
=0
37 LM_SENSORS_MAKE_OPTS
+= BUILD_STATIC_LIB
=1
40 define LM_SENSORS_BUILD_CMDS
41 $(MAKE
) $(TARGET_CONFIGURE_OPTS
) $(LM_SENSORS_MAKE_OPTS
) -C
$(@D
)
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
))
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_
))
54 $(eval
$(generic-package
))