[package] update lm-sensors package
authorFlorian Fainelli <florian@openwrt.org>
Sun, 21 Nov 2010 22:01:21 +0000 (22:01 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 21 Nov 2010 22:01:21 +0000 (22:01 +0000)
Enable parallel build of package, install headers, shared and static libraries

Signed-off-by: Luka Perkov <openwrt@lukaperkov.net>
SVN-Revision: 24069

utils/lm-sensors/Makefile

index bb4c1a78d506b3458036a54b559b734b7a4f55ff..63e1a22ba0ba0a2a6b0f8659aee50d5e2507db7a 100644 (file)
@@ -9,27 +9,27 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lm-sensors
 PKG_VERSION:=3.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
 PKG_MD5SUM:=829d88fb09d67723fbf42853eb84d1fd
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
 define Package/lm-sensors/Default
-  SECTION:=utils
-  CATEGORY:=Utilities
-  TITLE:=lm-sensors
   DEPENDS:=+sysfsutils
   URL:=http://www.lm-sensors.org/
 endef
 
 define Package/lm-sensors
   $(call Package/lm-sensors/Default)
-  TITLE+=(programs)
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=lm-sensors
   DEPENDS+=+libsensors
 endef
 
@@ -37,7 +37,7 @@ define Package/libsensors
   $(call Package/lm-sensors/Default)
   SECTION:=libs
   CATEGORY:=Libraries
-  TITLE+=libraries
+  TITLE:=libsensors
 endef
 
 define Package/lm-sensors/description
@@ -53,7 +53,8 @@ define Package/lm-sensors/conffiles
 endef
 
 define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
+       $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+               $(TARGET_CONFIGURE_OPTS) \
                KERNELVERSION="$(LINUX_VERSION)" \
                LINUX="$(LINUX_DIR)" \
                CC="$(TARGET_CC)" \
@@ -63,6 +64,17 @@ define Build/Compile
                user
 endef
 
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include/sensors
+       $(CP) \
+               $(PKG_BUILD_DIR)/lib/sensors.h \
+               $(1)/usr/include/sensors
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) \
+               $(PKG_BUILD_DIR)/lib/libsensors.{a,so*} \
+               $(1)/usr/lib/
+endef
+
 define Package/lm-sensors/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/