From 72eea0a6ee0b1b7b6dff67e1d0e5eed6df77e753 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 24 Oct 2007 22:21:25 +0000 Subject: [PATCH] Add digitemp (#2546) SVN-Revision: 9441 --- utils/digitemp/Makefile | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 utils/digitemp/Makefile diff --git a/utils/digitemp/Makefile b/utils/digitemp/Makefile new file mode 100644 index 0000000000..50ea1d57d5 --- /dev/null +++ b/utils/digitemp/Makefile @@ -0,0 +1,46 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=digitemp +PKG_VERSION:=3.5.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.digitemp.com/software/linux +PKG_MD5SUM:=72bda9c8a66b017aa969c19dedb3225b +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/digitemp + SECTION:=utils + CATEGORY:=Utilities + TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices. + DEPENDS:=+libusb + URL:=http://www.digitemp.com +endef + +define Package/digitemp/description + DigiTemp is a simple to use program for reading values from 1-wire devices. + Its main use is for reading temperature sensors, but it also reads counters, + and understands the 1-wire hubs with devices on different branches of the network. +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -DLINUX -I$(STAGING_DIR)/usr/include \ + -I/.src -I./userial" \ + LIBS="-L$(STAGING_DIR)/usr/lib -lusb -lm" \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + ds2490 +endef + +define Package/digitemp/install + mkdir -p $(1)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,digitemp)) -- 2.30.2