source: packages/utils/lm-sensors/Makefile @ 22491

Last change on this file since 22491 was 22491, checked in by jow, 6 years ago

[PATCH] lm-sensors package upgrade/update
Update the lm-Sensors Makefile to new the release (3.1.2). Enable
package selection on other platforms.
Signed-off-by: Luka Perkov <openwrt@…>

File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=lm-sensors
11PKG_VERSION:=3.1.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
16PKG_MD5SUM:=58a9a225808ac4587c4c8cbd12b40b5c
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/lm-sensors/Default
23  SECTION:=utils
24  CATEGORY:=Utilities
25  TITLE:=lm-sensors
26  DEPENDS:=+sysfsutils
27  URL:=http://www.lm-sensors.org/
28endef
29
30define Package/lm-sensors
31  $(call Package/lm-sensors/Default)
32  TITLE+=(programs)
33  DEPENDS+=+libsensors
34endef
35
36define Package/libsensors
37  $(call Package/lm-sensors/Default)
38  SECTION:=libs
39  CATEGORY:=Libraries
40  TITLE+=libraries
41endef
42
43define Package/lm-sensors/description
44        Utility to read hardware sensor data
45endef
46
47define Package/libsensors/description
48        lm-sensors libraries
49endef
50
51define Package/lm-sensors/conffiles
52/etc/sensors.conf
53endef
54
55define Build/Compile
56        $(MAKE) -C $(PKG_BUILD_DIR) \
57                KERNELVERSION="$(LINUX_VERSION)" \
58                LINUX="$(LINUX_DIR)" \
59                CC="$(TARGET_CC)" \
60                STAGING_DIR="$(STAGING_DIR)" \
61                PREFIX="/usr" \
62                MACHINE="$(ARCH)" \
63                user
64endef
65
66define Package/lm-sensors/install
67        $(INSTALL_DIR) $(1)/usr/sbin
68        $(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
69        $(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/detect/sensors-detect $(1)/usr/sbin/
70        $(INSTALL_DIR) $(1)/etc
71        $(INSTALL_CONF) ./files/sensors.conf $(1)/etc/sensors.conf
72endef
73
74define Package/libsensors/install
75        $(INSTALL_DIR) $(1)/usr/lib
76        $(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
77endef
78
79
80$(eval $(call BuildPackage,lm-sensors))
81$(eval $(call BuildPackage,libsensors))
Note: See TracBrowser for help on using the repository browser.