1 include $(TOPDIR)/rules.mk
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://www.digitemp.com/software/linux
9 PKG_MD5SUM:=72bda9c8a66b017aa969c19dedb3225b
12 include $(INCLUDE_DIR)/package.mk
14 define Package/digitemp
17 TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices.
19 URL:=http://www.digitemp.com
22 define Package/digitemp/description
23 DigiTemp is a simple to use program for reading values from 1-wire devices.
24 Its main use is for reading temperature sensors, but it also reads counters,
25 and understands the 1-wire hubs with devices on different branches of the network.
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS) -DLINUX -I$(STAGING_DIR)/usr/include \
32 -I/.src -I./userial -DOWUSB" \
33 LIBS="-L$(STAGING_DIR)/usr/lib -lusb -lm" \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
38 define Package/digitemp/install
39 mkdir -p $(1)/usr/bin/
40 $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
43 $(eval $(call BuildPackage,digitemp))