2009-01-16 12:15:56 +00:00
|
|
|
#
|
2011-02-02 18:52:31 +00:00
|
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
2009-01-16 12:15:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2007-10-24 22:21:25 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=digitemp
|
2009-01-16 12:15:56 +00:00
|
|
|
PKG_VERSION:=3.6.0
|
2011-02-02 18:52:31 +00:00
|
|
|
PKG_RELEASE:=5
|
2007-10-24 22:21:25 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.digitemp.com/software/linux
|
2009-01-16 12:15:56 +00:00
|
|
|
PKG_MD5SUM:=9be2e48db37920f21925ae6e88f83b84
|
2007-10-24 22:21:25 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-07-26 17:59:49 +00:00
|
|
|
define Package/digitemp/Default
|
2007-10-24 22:21:25 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices.
|
|
|
|
URL:=http://www.digitemp.com
|
|
|
|
endef
|
|
|
|
|
2009-07-26 17:59:49 +00:00
|
|
|
define Package/digitemp/Default/description
|
2007-10-24 22:21:25 +00:00
|
|
|
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
|
|
|
|
|
2009-07-26 17:59:49 +00:00
|
|
|
define Package/digitemp
|
|
|
|
$(call Package/digitemp/Default)
|
|
|
|
TITLE += (serial version)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/digitemp/description
|
|
|
|
$(call Package/digitemp/Default/description)
|
|
|
|
This package is build without USB support.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/digitemp-usb
|
|
|
|
$(call Package/digitemp/Default)
|
|
|
|
TITLE += (USB version)
|
2013-01-29 18:09:28 +00:00
|
|
|
DEPENDS += +libusb-compat
|
2009-07-26 17:59:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/digitemp-usb/description
|
|
|
|
$(call Package/digitemp/Default/description)
|
|
|
|
This package is build with USB support.
|
|
|
|
endef
|
|
|
|
|
2007-10-24 22:21:25 +00:00
|
|
|
define Build/Compile
|
2009-07-26 17:59:49 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -DLINUX $(TARGET_CPPFLAGS) \
|
|
|
|
-I./src -I./userial" \
|
2009-11-22 23:51:37 +00:00
|
|
|
LIBS="$(TARGET_LDFLAGS)" \
|
2009-07-26 17:59:49 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2011-02-02 18:52:31 +00:00
|
|
|
ds9097 ds9097u
|
2007-10-24 22:21:25 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2009-04-29 12:56:17 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -DLINUX $(TARGET_CPPFLAGS) \
|
2009-01-16 12:15:56 +00:00
|
|
|
-I./src -I./userial -DOWUSB" \
|
2009-11-22 23:51:37 +00:00
|
|
|
LIBS="$(TARGET_LDFLAGS) -lusb -lm -DOWUSB" \
|
2007-10-24 22:21:25 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2009-11-22 23:51:37 +00:00
|
|
|
clean ds2490
|
2007-10-24 22:21:25 +00:00
|
|
|
endef
|
|
|
|
|
2009-11-22 23:51:37 +00:00
|
|
|
define Package/digitemp/install
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
2011-02-02 18:52:31 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/digitemp_{DS9097,DS9097U} $(1)/usr/bin/
|
2009-07-26 17:59:49 +00:00
|
|
|
endef
|
|
|
|
|
2009-11-22 23:51:37 +00:00
|
|
|
define Package/digitemp-usb/install
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
2009-11-19 14:52:12 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
|
2007-10-24 22:21:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,digitemp))
|
2009-07-26 17:59:49 +00:00
|
|
|
$(eval $(call BuildPackage,digitemp-usb))
|